mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-04-30 19:09:19 +08:00
Merge pull request #365 from nyoma-diamond/fix-permissive-flag
Fix overzealous build-time `/permissive-` propagating to compile-time (cross-compilation bug)
This commit is contained in:
commit
d5717d4a80
@ -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