summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAmir Masoud Abdol <amirmasoudabdol@icloud.com>2022-10-26 17:03:28 +0200
committerAmir Masoud Abdol <amirmasoudabdol@icloud.com>2022-10-27 15:14:29 +0200
commit626ebf4738ca0df93d0b9e5ccdb305cb1dfa0839 (patch)
tree04494e874632e4e842ce0b869ea99ef84537efa1 /cmake
parent17ab4045ca4e0992678dd5c1cdbf19ba591cbe48 (diff)
Fix a bug in detecting system
Since QtAutoDetect is called before the project, we still don't have access to our IOS, WATCHOS, TVOS variables, and we must use CMAKE_SYSTEM_NAME variable instead. Pick-to: 6.4 Change-Id: I61afe216baec85b3fcd489957f4b6774134f8078 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtAutoDetect.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtAutoDetect.cmake b/cmake/QtAutoDetect.cmake
index 7615866721..c1ef0cc344 100644
--- a/cmake/QtAutoDetect.cmake
+++ b/cmake/QtAutoDetect.cmake
@@ -274,7 +274,7 @@ endfunction()
function(qt_internal_get_darwin_sdk_version out_var)
if(APPLE)
- if(IOS)
+ if(CMAKE_SYSTEM_NAME STREQUAL iOS)
set(sdk_name "iphoneos")
else()
# Default to macOS