Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: Raise minimum macOS version in Info.plist

Freya Lupencf36faa6e333
diff --git a/krita/CMakeLists.txt b/krita/CMakeLists.txt
index 7d71367833..81f2a9884b 100644
--- a/krita/CMakeLists.txt
+++ b/krita/CMakeLists.txt
@@ -138,6 +138,12 @@ if (APPLE)
set_target_properties(krita PROPERTIES MACOSX_BUNDLE_SHORT_VERSION_STRING ${KRITA_VERSION_NUMBER_STRING})
set_target_properties(krita PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION ${KRITA_VERSION_NUMBER_STRING})
set_target_properties(krita PROPERTIES MACOSX_BUNDLE_COPYRIGHT "GNU Public License, V2 or, at your option, any later version.")
+ if (QT_MAJOR_VERSION STREQUAL "6")
+ set(MACOS_MINIMUM_VERSION 12)
+ else()
+ set(MACOS_MINIMUM_VERSION 10.14)
+ endif()
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.template ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
endif ()
if (NOT ANDROID)
diff --git a/krita/Info.plist.template b/krita/Info.plist.template
index 1841b8d0f0..dca2750d52 100644
--- a/krita/Info.plist.template
+++ b/krita/Info.plist.template
@@ -37,7 +37,7 @@
<key>LSRequiresCarbon</key>
<true/>
<key>LSMinimumSystemVersion</key>
- <string>10.14</string>
+ <string>${MACOS_MINIMUM_VERSION}</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>NSHumanReadableCopyright</key>