From 70439b5967a32e0fc3409d860ef34b7c99e135df Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 22 Sep 2019 13:35:24 +0200 Subject: cmake: disable opencv exceptions in toolchain file --- cmake/msvc.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') 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) -- cgit v1.2.3