cmake: Determine minimum deployment target for Qt
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 3 Jan 2021 13:39:28 +0000 (14:39 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 4 Jan 2021 07:16:42 +0000 (08:16 +0100)
commit28eb43dd1ccd882b2975c346297842c1dc074469
tree8b5010791acd739254344ffa919ed273a471a7d9
parentc255f44e7ce5e0b006efcd540d1d9062081c0069
cmake: Determine minimum deployment target for Qt

The minimum version of macOS supported by Qt may differ from the one
provided by the Xcode SDK in use. If started on a macOS that is older
than the minimum version indicated by Qt, the application might crash.

Qt's minimum deployment target is not available directly as a define,
variable or CMake/qmake property, but can be extracted from qmake
using a rather stupid hack. Use this to set a cache variable that
will be used in subsequent commits when generating the package's
Info.plist file.
CMakeLists.txt