From f1fd5accaf482656fb54c5c3ec78fd4644848e2e Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Sat, 11 May 2019 18:50:23 +0700 Subject: [PATCH] Rollback MSVC by default doesn't enable /EHsc also. Just keep it most simple. --- CMakeLists.txt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 544f3ca6..ee0142c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,21 +162,6 @@ if (FMT_PEDANTIC) target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS}) 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_include_directories(fmt PUBLIC