Because TravisCI evaluates MSVC true in linux and apple

So workaround with replacing
If (MSVC)
with
if (MSVC AND WIN32)
This commit is contained in:
denchat 2019-05-09 17:36:26 +07:00 committed by GitHub
parent 28b559ec56
commit 133af4a9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,12 +164,11 @@ endif ()
# Insert FMT_MSVC_EH if user provides.
# If not, default to /EHsc in clang target msvc.
if (MSVC)
if (MSVC AND WIN32)
if (FMT_MSVC_EH)
set(FMT_CUSTOM_MSVC_EH ${FMT_MSVC_EH})
else ()
if ( (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
AND WIN32 )
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(FMT_CUSTOM_MSVC_EH /EHsc)
else ()
set(FMT_CUSTOM_MSVC_EH)