mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-08 01:36:49 +08:00
Cleaner flag setting.
This commit is contained in:
parent
0ece926e6d
commit
9519835573
@ -4,9 +4,6 @@ project(fast_float VERSION 1.0.0 LANGUAGES CXX)
|
||||
option(FASTFLOAT_TEST "Enable tests" OFF)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
if(MSVC_VERSION GREATER 1910)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -permissive-")
|
||||
endif()
|
||||
if(FASTFLOAT_TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(tests)
|
||||
@ -40,6 +37,10 @@ if(FASTFLOAT_SANITIZE)
|
||||
target_link_libraries(fast_float INTERFACE -fuse-ld=gold)
|
||||
endif()
|
||||
endif()
|
||||
if(MSVC_VERSION GREATER 1910)
|
||||
target_compile_options(fast_float INTERFACE /permissive-)
|
||||
endif()
|
||||
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user