summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-07-01 07:00:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2020-07-01 07:00:40 +0200
commite3bcf63d15104c1ff547e3df3104c6fadcce4df6 (patch)
treefa6f6464aaa57fa56adc14b71cc6c6c465bdbe9a
parenta4ea9e7655d9e7cf869a20d1fa70e3443011f058 (diff)
cmake: fix msvc exception model
-rw-r--r--cmake/opentrack-platform.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index 96d306fa..23f684f3 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -118,8 +118,8 @@ if(MSVC)
add_definitions(-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
- add_compile_options(-EHs-c-)
- add_definitions(-D_HAS_EXCEPTIONS=0)
+ add_compile_options(-EHsc)
+ #add_definitions(-D_HAS_EXCEPTIONS=0)
add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE)
add_definitions(-D_ENABLE_ATOMIC_ALIGNMENT_FIX)