diff options
Diffstat (limited to '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) |