Skip to content

Commit 974a851

Browse files
committed
address review
1 parent 04aa5a6 commit 974a851

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ macro(xeus_cpp_set_common_options target_name)
212212
if (MSVC)
213213
target_compile_options(${target_name} PUBLIC /wd4251 /wd4141)
214214
target_compile_options(${target_name} PUBLIC /wd4018 /wd4267 /wd4715 /wd4146 /wd4129)
215+
target_compile_options(${target_name} PUBLIC /EHsc)
216+
else ()
217+
target_compile_options(${target_name} PUBLIC -fexceptions)
215218
endif ()
216219

217220
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR

0 commit comments

Comments
 (0)