summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-18 15:21:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-18 15:21:42 +0200
commit29cdbe6d487627dee375c948e6527344c0388721 (patch)
tree1dd473a86db17e2827045a235e75a3aa79a5252d /cmake
parentca97bc02e1c38f1ab46f4d8d8447eeffa89988a9 (diff)
cmake/msvc: squelch warning
Diffstat (limited to 'cmake')
-rw-r--r--cmake/msvc.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index c166d322..06f90a49 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -30,6 +30,11 @@ if(NOT CMAKE_PROJECT_NAME STREQUAL "OpenCV")
add_definitions(-D_CRT_USE_BUILTIN_OFFSETOF)
endif()
+if(DEFINED CMAKE_TOOLCHAIN_FILE)
+ # ignore cmake warning: Manually-specified variable not used by the project
+ set(CMAKE_TOOLCHAIN_FILE "${CMAKE_TOOLCHAIN_FILE}}")
+endif()
+
include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE)
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW CACHE INTERNAL "" FORCE)
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)