We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a239222 commit 97cda25Copy full SHA for 97cda25
Sources/_TestingInternals/CMakeLists.txt
@@ -17,8 +17,14 @@ add_library(_TestingInternals STATIC
17
WillThrow.cpp)
18
target_include_directories(_TestingInternals PUBLIC
19
${CMAKE_CURRENT_SOURCE_DIR}/include)
20
-target_compile_options(_TestingInternals PRIVATE
21
- -fno-exceptions)
+if("${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC" OR
+ "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
22
+ target_compile_options(_TestingInternals PRIVATE
23
+ /EHa-c)
24
+else()
25
26
+ -fno-exceptions)
27
+endif()
28
29
if(NOT BUILD_SHARED_LIBS)
30
# When building a static library, install the internal library archive
0 commit comments