CMake: Don't run sdk / xcode version checks on non-Apple platforms

It was an oversight.

Amends a29bff3d80

Pick-to: 6.6
Change-Id: I696d7a2650c336dc93df01245065bcbb61ca1d6b
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
bb10
Alexandru Croitor 2023-12-04 10:24:33 +01:00
parent 7bc6f4ae8e
commit ffa79f5e0c
1 changed files with 4 additions and 0 deletions

View File

@ -781,6 +781,10 @@ endfunction()
#
# The qmake equivalent for user projects is in mkspecs/features/mac/default_post.prf.
function(_qt_internal_check_apple_sdk_and_xcode_versions)
if(NOT APPLE)
return()
endif()
if(QT_NO_APPLE_SDK_AND_XCODE_CHECK)
return()
endif()