diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 15:21:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 15:21:42 +0200 |
commit | 29cdbe6d487627dee375c948e6527344c0388721 (patch) | |
tree | 1dd473a86db17e2827045a235e75a3aa79a5252d /cmake/msvc.cmake | |
parent | ca97bc02e1c38f1ab46f4d8d8447eeffa89988a9 (diff) |
cmake/msvc: squelch warning
Diffstat (limited to 'cmake/msvc.cmake')
-rw-r--r-- | cmake/msvc.cmake | 5 |
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) |