From 6d29264e3ed125a4c724a1f8df90d1fddb5c1b6e Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 21 Feb 2020 15:47:01 +0100 Subject: CMake: Set minimum deployment target only for host macOS A future change will come that sets it for iOS and friends. Change-Id: I74b688ee62d24137e3cdf5475e1a9e858698ccf0 Reviewed-by: Leander Beernaert Reviewed-by: Alexandru Croitor --- cmake/QtAutoDetect.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/QtAutoDetect.cmake b/cmake/QtAutoDetect.cmake index c38e226b00..936d9fdfa8 100644 --- a/cmake/QtAutoDetect.cmake +++ b/cmake/QtAutoDetect.cmake @@ -179,7 +179,8 @@ function(qt_auto_detect_darwin) # to a value that we choose. This replicates the behavior # in mkspecs/common/macx.conf where # QMAKE_MACOSX_DEPLOYMENT_TARGET is set. - if(NOT CMAKE_OSX_DEPLOYMENT_TARGET) + # Currently only set for macOS, and not the mobile platforms. + if(NOT CMAKE_OSX_DEPLOYMENT_TARGET AND NOT CMAKE_SYSTEM_NAME) set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14" CACHE STRING "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.") endif() -- cgit v1.2.3