summaryrefslogtreecommitdiffhomepage
path: root/cmake/msvc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/msvc.cmake')
-rw-r--r--cmake/msvc.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index cef20a85..1eb06c8d 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -42,6 +42,8 @@ set(CMAKE_POLICY_DEFAULT_CMP0069 NEW CACHE INTERNAL "" FORCE)
set(CMAKE_C_EXTENSIONS FALSE)
set(CMAKE_CXX_EXTENSIONS FALSE)
+unset(CMAKE_CROSSCOMPILING)
+
if(CMAKE_PROJECT_NAME STREQUAL "opentrack")
#include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE)
@@ -57,7 +59,6 @@ if(CMAKE_PROJECT_NAME STREQUAL "opentrack")
endif()
if(CMAKE_PROJECT_NAME STREQUAL "QtBase")
- unset(CMAKE_CROSSCOMPILING)
set(QT_BUILD_TOOLS_WHEN_CROSSCOMPILING TRUE CACHE BOOL "" FORCE)
set(QT_DEBUG_OPTIMIZATION_FLAGS TRUE CACHE BOOL "" FORCE)
set(QT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS TRUE CACHE BOOL "" FORCE)