summaryrefslogtreecommitdiffhomepage
path: root/cmake/msvc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/msvc.cmake')
-rw-r--r--cmake/msvc.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index cd967dd9..1e67948d 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -51,6 +51,8 @@ if(CMAKE_PROJECT_NAME STREQUAL "opencv")
endif()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
+
+cmake_policy(SET CMP0069 NEW)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
add_compile_options(-Zi -Zf -Zo -bigobj -cgthreads1 -vd0)