summaryrefslogtreecommitdiffhomepage
path: root/cmake/msvc.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-07-29 15:55:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-07-29 15:55:09 +0200
commiteded65bbcabd8e2267ef3a1d7df467ab403b27e0 (patch)
treee8352bd3fdaa3ae582880945938d6eef21ffc480 /cmake/msvc.cmake
parent2112db0a98a2cd14b25828a5bc84bddc423712bf (diff)
to rebasefeature/qt6
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)