cmake update

This commit is contained in:
Markus F.X.J. Oberhumer
2024-07-31 18:56:32 +02:00
parent ba969fb9f2
commit b4db17ab3c
4 changed files with 38 additions and 11 deletions
+6 -2
View File
@@ -55,14 +55,18 @@
#endif
#endif
#if defined(__FAST_MATH__) && defined(__clang__) && (__clang_major__ + 0 >= 6)
#if defined(__FAST_MATH__) && defined(__clang__) && (__clang_major__ + 0 > 0)
#if __clang_major__ >= 6
// warning: comparison with NaN always evaluates to false in fast floating point modes
#pragma clang diagnostic ignored "-Wtautological-constant-compare"
#endif
#if defined(__FAST_MATH__) && defined(__clang__) && (__clang_major__ + 0 >= 18)
#if defined(__has_warning)
#if __has_warning("-Wnan-infinity-disabled")
// warning: use of NaN is undefined behavior due to the currently enabled floating-point options
#pragma clang diagnostic ignored "-Wnan-infinity-disabled"
#endif
#endif
#endif
#include <doctest/doctest/parts/doctest.cpp>