diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-02-21 15:47:01 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-02-21 16:16:26 +0100 |
commit | 6d29264e3ed125a4c724a1f8df90d1fddb5c1b6e (patch) | |
tree | 314195f041759dc2d9b9f714443a0c6a8124d5ca /cmake | |
parent | e3c4870feba182bc4565b7481536087dbb785832 (diff) |
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 <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtAutoDetect.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
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() |