Properly disable exceptions on MSVC

Apparently the actual way to do this is to use '-', not 'c'.

Fixes #1117.
This commit is contained in:
Misa 2024-01-14 04:59:08 -08:00
parent 67f56985eb
commit 2406e5ac92
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ if(MSVC)
# Disable exceptions
string(REGEX REPLACE "/EH[a-z]+" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHs-")
# Disable RTTI
string(REPLACE "/GR" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")