cmake: Always export Apple version requirements
The full set is needed, on all platforms, so that we can use them during documentation builds. Pick-to: 6.5 Change-Id: Ie555094a8e365fada7e43da6899e312d774eadb2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 179982a81a292bfe3f9dc16888f7c9777f1b2251) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
01d5246695
commit
cfa9691cba
@ -731,30 +731,28 @@ function(_qt_internal_set_ios_simulator_arch target)
|
||||
endfunction()
|
||||
|
||||
# Export Apple platform sdk and xcode version requirements to Qt6ConfigExtras.cmake.
|
||||
# Always exported, even on non-Apple platforms, so that we can use them when building
|
||||
# documentation.
|
||||
function(_qt_internal_export_apple_sdk_and_xcode_version_requirements out_var)
|
||||
if(NOT APPLE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(IOS)
|
||||
set(vars_to_assign
|
||||
QT_SUPPORTED_MIN_IOS_SDK_VERSION
|
||||
QT_SUPPORTED_MAX_IOS_SDK_VERSION
|
||||
QT_SUPPORTED_MIN_IOS_XCODE_VERSION
|
||||
)
|
||||
elseif(VISIONOS)
|
||||
set(vars_to_assign
|
||||
QT_SUPPORTED_MIN_IOS_VERSION
|
||||
QT_SUPPORTED_MAX_IOS_VERSION_TESTED
|
||||
|
||||
QT_SUPPORTED_MIN_VISIONOS_SDK_VERSION
|
||||
QT_SUPPORTED_MAX_VISIONOS_SDK_VERSION
|
||||
QT_SUPPORTED_MIN_VISIONOS_XCODE_VERSION
|
||||
)
|
||||
else()
|
||||
set(vars_to_assign
|
||||
QT_SUPPORTED_MIN_VISIONOS_VERSION
|
||||
QT_SUPPORTED_MAX_VISIONOS_VERSION_TESTED
|
||||
|
||||
QT_SUPPORTED_MIN_MACOS_SDK_VERSION
|
||||
QT_SUPPORTED_MAX_MACOS_SDK_VERSION
|
||||
QT_SUPPORTED_MIN_MACOS_XCODE_VERSION
|
||||
QT_SUPPORTED_MIN_MACOS_VERSION
|
||||
QT_SUPPORTED_MAX_MACOS_VERSION_TESTED
|
||||
)
|
||||
endif()
|
||||
|
||||
set(assignments "")
|
||||
foreach(var IN LISTS vars_to_assign)
|
||||
|
Loading…
x
Reference in New Issue
Block a user