From df79c2acabe96024de01b1f72cd5e4b88e5cda10 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 19 Oct 2019 13:55:12 +0200 Subject: [PATCH] Added exception handling for windows --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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()