[qt5-base] Fix incorrect QMAKE_MACOSX_DEPLOYMENT_TARGET (#21486)

* [qt5-base] Fix incorrect QMAKE_MACOSX_DEPLOYMENT_TARGET

* version

* keep the osx sdk version show

* version
This commit is contained in:
Jack·Boos·Yu 2021-11-24 04:11:07 +08:00 committed by GitHub
parent 9df0b27226
commit 2afb0b0efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 5 deletions

View File

@ -319,10 +319,19 @@ elseif(VCPKG_TARGET_IS_OSX)
execute_process(COMMAND xcrun --show-sdk-version
OUTPUT_FILE OSX_SDK_VER.txt
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR})
FILE(STRINGS "${CURRENT_BUILDTREES_DIR}/OSX_SDK_VER.txt" VCPKG_OSX_DEPLOYMENT_TARGET REGEX "^[0-9][0-9]\.[0-9][0-9]*")
message(STATUS "Detected OSX SDK Version: ${VCPKG_OSX_DEPLOYMENT_TARGET}")
FILE(STRINGS "${CURRENT_BUILDTREES_DIR}/OSX_SDK_VER.txt" OSX_SDK_VERSION REGEX "^[0-9][0-9]\.[0-9][0-9]*")
message(STATUS "Detected OSX SDK Version: ${OSX_SDK_VERSION}")
string(REGEX MATCH "^[0-9][0-9]\.[0-9][0-9]*" OSX_SDK_VERSION ${OSX_SDK_VERSION})
message(STATUS "Major.Minor OSX SDK Version: ${OSX_SDK_VERSION}")
execute_process(COMMAND sw_vers -productVersion
OUTPUT_FILE OSX_SYS_VER.txt
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR})
FILE(STRINGS "${CURRENT_BUILDTREES_DIR}/OSX_SYS_VER.txt" VCPKG_OSX_DEPLOYMENT_TARGET REGEX "^[0-9][0-9]\.[0-9][0-9]*")
message(STATUS "Detected OSX system Version: ${VCPKG_OSX_DEPLOYMENT_TARGET}")
string(REGEX MATCH "^[0-9][0-9]\.[0-9][0-9]*" VCPKG_OSX_DEPLOYMENT_TARGET ${VCPKG_OSX_DEPLOYMENT_TARGET})
message(STATUS "Major.Minor OSX SDK Version: ${VCPKG_OSX_DEPLOYMENT_TARGET}")
message(STATUS "Major.Minor OSX system Version: ${VCPKG_OSX_DEPLOYMENT_TARGET}")
set(ENV{QMAKE_MACOSX_DEPLOYMENT_TARGET} ${VCPKG_OSX_DEPLOYMENT_TARGET})
if(${VCPKG_OSX_DEPLOYMENT_TARGET} GREATER "10.15") # Max Version supported by QT. This version is defined in mkspecs/common/macx.conf as QT_MAC_SDK_VERSION_MAX
message(STATUS "Qt ${QT_MAJOR_MINOR_VER}.${QT_PATCH_VER} only support OSX_DEPLOYMENT_TARGET up to 10.15")

View File

@ -1,7 +1,7 @@
{
"name": "qt5-base",
"version-semver": "5.15.2",
"port-version": 14,
"port-version": 15,
"description": "Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
"homepage": "https://www.qt.io/",
"dependencies": [

View File

@ -5502,7 +5502,7 @@
},
"qt5-base": {
"baseline": "5.15.2",
"port-version": 14
"port-version": 15
},
"qt5-canvas3d": {
"baseline": "0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3f339b7160586f33649b2bee10a48b4629d6d1f2",
"version-semver": "5.15.2",
"port-version": 15
},
{
"git-tree": "1e5756de068474651dc8ee50fb14be3d4c236b05",
"version-semver": "5.15.2",