diff --git a/CMakeLists.txt b/CMakeLists.txt index 97a5a92..b5afae9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,7 @@ if (MSVC) foreach(CompilerFlag ${CompilerFlags}) string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") endforeach() + add_compile_options("/EHa") #We require exception handling else() set(CMAKE_CXX_FLAGS_RELEASE "-O3") #-DNDEBUG We want assert! endif()