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:
parent
28b559ec56
commit
133af4a9c2
@ -164,12 +164,11 @@ endif ()
|
|||||||
|
|
||||||
# Insert FMT_MSVC_EH if user provides.
|
# Insert FMT_MSVC_EH if user provides.
|
||||||
# If not, default to /EHsc in clang target msvc.
|
# If not, default to /EHsc in clang target msvc.
|
||||||
if (MSVC)
|
if (MSVC AND WIN32)
|
||||||
if (FMT_MSVC_EH)
|
if (FMT_MSVC_EH)
|
||||||
set(FMT_CUSTOM_MSVC_EH ${FMT_MSVC_EH})
|
set(FMT_CUSTOM_MSVC_EH ${FMT_MSVC_EH})
|
||||||
else ()
|
else ()
|
||||||
if ( (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
AND WIN32 )
|
|
||||||
set(FMT_CUSTOM_MSVC_EH /EHsc)
|
set(FMT_CUSTOM_MSVC_EH /EHsc)
|
||||||
else ()
|
else ()
|
||||||
set(FMT_CUSTOM_MSVC_EH)
|
set(FMT_CUSTOM_MSVC_EH)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user