Skip to content

Commit

Permalink
cmake: macOS: set deployment target to min supported OS by Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Sep 27, 2024
1 parent 79540b7 commit 562fd49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ option(USE_QT5 "Build with Qt5 instead of Qt6" OFF)

if(USE_QT5)
list(APPEND VCPKG_MANIFEST_FEATURES "qt5")
if(APPLE)
set(ENV{MACOSX_DEPLOYMENT_TARGET} "10.13")
set(ENV{VCPKG_KEEP_ENV_VARS} "MACOSX_DEPLOYMENT_TARGET")
endif()
else()
list(APPEND VCPKG_MANIFEST_FEATURES "qt6")
if(APPLE)
set(ENV{MACOSX_DEPLOYMENT_TARGET} "11.0")
set(ENV{VCPKG_KEEP_ENV_VARS} "MACOSX_DEPLOYMENT_TARGET")
endif()
endif()

option(DEPS_RELEASE_ONLY "Build only release versions of vcpkg dependencies" OFF)
Expand Down

0 comments on commit 562fd49

Please sign in to comment.