Rollback
MSVC by default doesn't enable /EHsc also. Just keep it most simple.
This commit is contained in:
parent
02e472d63a
commit
f1fd5accaf
@ -162,21 +162,6 @@ if (FMT_PEDANTIC)
|
|||||||
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
|
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Insert FMT_MSVC_EH if user provides.
|
|
||||||
# If not, default to /EHsc in clang target msvc.
|
|
||||||
if (MSVC)
|
|
||||||
if (FMT_MSVC_EH)
|
|
||||||
set(FMT_CUSTOM_MSVC_EH ${FMT_MSVC_EH})
|
|
||||||
else ()
|
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
||||||
set(FMT_CUSTOM_MSVC_EH /EHsc)
|
|
||||||
else ()
|
|
||||||
set(FMT_CUSTOM_MSVC_EH)
|
|
||||||
endif ()
|
|
||||||
endif ()
|
|
||||||
target_compile_options(fmt PRIVATE ${FMT_CUSTOM_MSVC_EH})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
target_compile_features(fmt INTERFACE ${FMT_REQUIRED_FEATURES})
|
target_compile_features(fmt INTERFACE ${FMT_REQUIRED_FEATURES})
|
||||||
|
|
||||||
target_include_directories(fmt PUBLIC
|
target_include_directories(fmt PUBLIC
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user