Ensure MSVC builds with standard unwinding enabled

It seems some cmake copies don't enable it for some odd reason ?
This commit is contained in:
Marek Roszko 2021-02-27 14:20:30 -05:00
parent d269778cd4
commit 047bfdfb30
1 changed files with 2 additions and 0 deletions

View File

@ -396,6 +396,8 @@ if( MSVC )
string( APPEND CMAKE_CXX_FLAGS_RELEASE " /GF" )
# Avoid fatal error because /GF + swig wrapper exceed standard obj file limits
string( APPEND CMAKE_CXX_FLAGS " /bigobj" )
# /EHsc: ensure standard exception C++ unwinding is enabled
string( APPEND CMAKE_CXX_FLAGS " /EHsc" )
foreach( type EXE SHARED MODULE)
# /DEBUG: create PDB
string( APPEND CMAKE_${type}_LINKER_FLAGS " /DEBUG /MANIFEST:NO" )