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 0ece926 commit 9519835Copy full SHA for 9519835
CMakeLists.txt
@@ -4,9 +4,6 @@ project(fast_float VERSION 1.0.0 LANGUAGES CXX)
4
option(FASTFLOAT_TEST "Enable tests" OFF)
5
set(CMAKE_CXX_STANDARD 11)
6
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7
-if(MSVC_VERSION GREATER 1910)
8
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -permissive-")
9
-endif()
10
if(FASTFLOAT_TEST)
11
enable_testing()
12
add_subdirectory(tests)
@@ -40,6 +37,10 @@ if(FASTFLOAT_SANITIZE)
40
37
target_link_libraries(fast_float INTERFACE -fuse-ld=gold)
41
38
endif()
42
39
+if(MSVC_VERSION GREATER 1910)
+ target_compile_options(fast_float INTERFACE /permissive-)
+endif()
43
+
44
45
include(CMakePackageConfigHelpers)
46
0 commit comments