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.
1 parent d28a332 commit 810a750Copy full SHA for 810a750
CMakeLists.txt
@@ -56,7 +56,10 @@ if(FASTFLOAT_SANITIZE)
56
endif()
57
58
if(MSVC_VERSION GREATER 1910)
59
- target_compile_options(fast_float INTERFACE /permissive-)
+ # /permissive- will only work on MSVC or clang-cl, clang will not accept it.
60
+ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
61
+ target_compile_options(fast_float INTERFACE /permissive-)
62
+ endif()
63
64
65
0 commit comments