From 02e472d63a606c9a2cb204d41e82461d55c3279a Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Sat, 11 May 2019 18:50:18 +0700 Subject: [PATCH] Delete selective adding /EHsc. Leave it to users. MSVC by default doesn't enable /EHsc either. Exception setting depends on user configurations. --- test/CMakeLists.txt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 58c62f0e..7bbe63a5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -31,19 +31,6 @@ if (MSVC) # Disable MSVC warnings of POSIX functions. target_compile_options(gmock PUBLIC -Wno-deprecated-declarations) endif () - - # Insert FMT_MSVC_EH if user provides. - # if not, default to /EHsc in clang target 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(gmock PUBLIC ${FMT_CUSTOM_MSVC_EH}) endif () # GTest doesn't detect with clang.