diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/msvc.cmake | 4 |
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) |