summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-06-23 11:54:03 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2023-06-28 22:09:20 +0200
commita3ec70a92971342da0caf68e20c14ce16a0b39af (patch)
tree667ec5c9725c35b50fe1b739004732ac20c0338f /src/tools
parent9ef864f56f1a049237f599b65684fa6d5ce06f55 (diff)
Pass CMAKE_OSX_SYSROOT to syncqt CMAKE_FLAGS
Fixes: QTBUG-114803 Pick-to: 6.5 6.6 Change-Id: I2eed5d6a7255eb61eff09d0c9a102e0652e63c0c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/syncqt/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/syncqt/CMakeLists.txt b/src/tools/syncqt/CMakeLists.txt
index 9cdbec8841..4d2cb640f0 100644
--- a/src/tools/syncqt/CMakeLists.txt
+++ b/src/tools/syncqt/CMakeLists.txt
@@ -31,6 +31,10 @@ else()
if(CMAKE_OSX_ARCHITECTURES)
set(osx_architectures "-DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES}")
endif()
+
+ if(CMAKE_OSX_SYSROOT)
+ set(osx_sysroot "-DCMAKE_OSX_SYSROOT:STRING=${CMAKE_OSX_SYSROOT}")
+ endif()
# Note: configure-time tools reserve the original tool name for the imported executable.
# To re-build syncqt use 'syncqt_build' target.
qt_internal_add_configure_time_tool(${target_name}
@@ -44,6 +48,7 @@ else()
# std::filesystem API is only available in macOS 10.15+
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.15
"${osx_architectures}"
+ "${osx_sysroot}"
SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
${config_type}