mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-07 18:26:45 +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)
|
option(FASTFLOAT_TEST "Enable tests" OFF)
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
if(MSVC_VERSION GREATER 1910)
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -permissive-")
|
|
||||||
endif()
|
|
||||||
if(FASTFLOAT_TEST)
|
if(FASTFLOAT_TEST)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
@ -40,6 +37,10 @@ if(FASTFLOAT_SANITIZE)
|
|||||||
target_link_libraries(fast_float INTERFACE -fuse-ld=gold)
|
target_link_libraries(fast_float INTERFACE -fuse-ld=gold)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if(MSVC_VERSION GREATER 1910)
|
||||||
|
target_compile_options(fast_float INTERFACE /permissive-)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user