mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-09-13 14:12:25 +08:00
compile-time generator expression fixes overzealous /permissive- compiler option usage
This commit is contained in:
parent
36a2b14eed
commit
707fccb445
@ -57,13 +57,7 @@ if(FASTFLOAT_SANITIZE)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(CheckCXXCompilerFlag)
|
target_compile_options(fast_float INTERFACE $<$<AND:$<CXX_COMPILER_ID:MSVC>,$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,19.10>>:/permissive->)
|
||||||
unset(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
|
|
||||||
CHECK_CXX_COMPILER_FLAG(/permissive- FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
|
|
||||||
|
|
||||||
if(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE)
|
|
||||||
target_compile_options(fast_float INTERFACE /permissive-)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(FASTFLOAT_INSTALL)
|
if(FASTFLOAT_INSTALL)
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user