We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36a2b14 + 707fccb commit d5717d4Copy full SHA for d5717d4
CMakeLists.txt
@@ -57,13 +57,7 @@ if(FASTFLOAT_SANITIZE)
57
endif()
58
59
60
-include(CheckCXXCompilerFlag)
61
-unset(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
62
-CHECK_CXX_COMPILER_FLAG(/permissive- FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
63
-
64
-if(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
65
- target_compile_options(fast_float INTERFACE /permissive-)
66
-endif()
+target_compile_options(fast_float INTERFACE $<$<AND:$<CXX_COMPILER_ID:MSVC>,$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,19.10>>:/permissive->)
67
68
if(FASTFLOAT_INSTALL)
69
include(CMakePackageConfigHelpers)
0 commit comments