summaryrefslogtreecommitdiffhomepage
path: root/cmake/msvc.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-09-22 13:35:24 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-09-22 13:35:24 +0200
commit70439b5967a32e0fc3409d860ef34b7c99e135df (patch)
tree63c9eeb6a25f17938bff8cd376a40d76549f160d /cmake/msvc.cmake
parent1782ee2e845d53cc8df74fcb14a4c1a21fbc1522 (diff)
cmake: disable opencv exceptions in toolchain file
Diffstat (limited to 'cmake/msvc.cmake')
-rw-r--r--cmake/msvc.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 69a8ebef..b7a403a3 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -30,6 +30,10 @@ if(CMAKE_PROJECT_NAME STREQUAL "opentrack")
endforeach()
endif()
+if(CMAKE_PROJECT_NAME STREQUAL "opencv")
+ set(OPENCV_SKIP_MSVC_EXCEPTIONS_FLAG TRUE)
+endif()
+
add_compile_options(-Zi -Zf -Zo -bigobj -cgthreads1 -vd0)
add_link_options(-cgthreads:1)