mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Merge pull request #305 from dankmeme01/main
fix /permissive- flag causing a compile error on clang for windows
This commit is contained in:
commit
8e5e92b6e2
@ -55,11 +55,15 @@ 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)
|
|
||||||
|
include(CheckCXXCompilerFlag)
|
||||||
|
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-)
|
target_compile_options(fast_float INTERFACE /permissive-)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(FASTFLOAT_INSTALL)
|
if(FASTFLOAT_INSTALL)
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user