diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 15:22:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 15:22:30 +0200 |
commit | b434ccf2a749aea7627e6ca7bd90ca1d2e46eb67 (patch) | |
tree | cf66217bf32c3f0255951ec9dda3262c8d5375b8 | |
parent | b81b694aea7adb4128a1b58b91689e843235defa (diff) |
cmake/msvc: never crosscompiling
-rw-r--r-- | cmake/msvc.cmake | 3 |
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) |