Narrowing scope to clang-target-msvc for mirroring cl default /EHsc

This commit is contained in:
denchat 2019-05-09 12:56:02 +07:00 committed by GitHub
parent c8cbf57e06
commit d75c98b515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ endif ()
if (FMT_PEDANTIC)
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
endif ()
if (MSVC)
if (MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "Clang") # mirroring cl default
target_compile_options(fmt PRIVATE /EHsc)
endif ()