We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1504792 + b7b17e6 commit 8e5e92bCopy full SHA for 8e5e92b
CMakeLists.txt
@@ -55,11 +55,15 @@ if(FASTFLOAT_SANITIZE)
55
target_link_libraries(fast_float INTERFACE -fuse-ld=gold)
56
endif()
57
58
-if(MSVC_VERSION GREATER 1910)
+
59
+include(CheckCXXCompilerFlag)
60
+unset(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
61
+CHECK_CXX_COMPILER_FLAG(/permissive- FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
62
63
+if(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
64
target_compile_options(fast_float INTERFACE /permissive-)
65
66
-
67
if(FASTFLOAT_INSTALL)
68
include(CMakePackageConfigHelpers)
69
0 commit comments