summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-25 05:58:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-26 11:22:50 +0200
commit66709cb944c8299a4324fcea5f6851862cc7d258 (patch)
tree63d806dcf16ea25bc7f3c8e228fb54cef48c870f /opentrack
parent454ba7be3a2b0d86c2bea0845a6e4c009d0675fc (diff)
opentrack, tracker/nn: enable exceptions
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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