1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-03 03:23:33 +02:00

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

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}")