From d8c008ad56ac582447f88a21748da75849b41a5a Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 19 Oct 2019 13:56:17 +0200 Subject: [PATCH] Added exception handling --- native/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index 34dda1b..1e59da5 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -110,6 +110,7 @@ if (MSVC) foreach(CompilerFlag ${CompilerFlags}) string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") endforeach() + add_compile_options("/EHa") #We require exception handling else() #This is a bad thing here! function(resolve_library VARIABLE FALLBACK PATHS)