From b434ccf2a749aea7627e6ca7bd90ca1d2e46eb67 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 18 Oct 2022 15:22:30 +0200 Subject: cmake/msvc: never crosscompiling --- cmake/msvc.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake') 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) -- cgit v1.2.3