From 66709cb944c8299a4324fcea5f6851862cc7d258 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Sep 2021 05:58:37 +0200 Subject: opentrack, tracker/nn: enable exceptions --- opentrack/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'opentrack/CMakeLists.txt') diff --git a/opentrack/CMakeLists.txt b/opentrack/CMakeLists.txt index a8829aa5..7a83beb6 100644 --- a/opentrack/CMakeLists.txt +++ b/opentrack/CMakeLists.txt @@ -1,3 +1,8 @@ +if(MSVC) + add_compile_options(-EHsc) + add_definitions(-D_HAS_EXCEPTIONS=1) +endif() + otr_module(executable EXECUTABLE BIN) set_target_properties(opentrack-executable PROPERTIES -- cgit v1.2.3