Commit 3c9d332f authored by Dominik Charousset's avatar Dominik Charousset

Set /EHsc when compiling via for MSVC

parent e58f6345
...@@ -92,6 +92,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") ...@@ -92,6 +92,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(caf_internal INTERFACE target_compile_options(caf_internal INTERFACE
-Wno-missing-field-initializers) -Wno-missing-field-initializers)
endif() endif()
elseif(MSVC)
target_compile_options(caf_internal INTERFACE /EHsc)
endif() endif()
# -- unit testing setup / caf_add_test_suites function ------------------------ # -- unit testing setup / caf_add_test_suites function ------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment