Skip to content

Commit

Permalink
Set the proper exception mode handling for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Sep 5, 2024
1 parent 26b2e13 commit afe5791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ if(MSVC)
if(HAVE_PERMISSIVE_SWITCH)
set(DSOAL_CFLAGS ${DSOAL_CFLAGS} $<$<COMPILE_LANGUAGE:CXX>:/permissive->)
endif()
set(DSOAL_CFLAGS ${DSOAL_CFLAGS} /W4 /w14640 /wd4065 /wd4127 /wd4268 /wd4324 /wd5030 /wd5051)
set(DSOAL_CFLAGS ${DSOAL_CFLAGS} /W4 /w14640 /wd4065 /wd4127 /wd4268 /wd4324 /wd5030 /wd5051
$<$<COMPILE_LANGUAGE:CXX>:/EHsc>)
else()
set(DEF_FILE mingw.def)

Expand Down

0 comments on commit afe5791

Please sign in to comment.