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++

Make the selection of SIP ABI automatic

Dmitry Kazakovbf7fa438058f
diff --git a/cmake/modules/SIPMacros.cmake b/cmake/modules/SIPMacros.cmake
index 052cf80c17..a350222df9 100644
--- a/cmake/modules/SIPMacros.cmake
+++ b/cmake/modules/SIPMacros.cmake
@@ -152,13 +152,19 @@ else()
endif()
if (QT_MAJOR_VERSION STREQUAL "6")
- set(abi_version "13.8")
+ if ("${Qt6_VERSION}" VERSION_GREATER_EQUAL 6.10.0)
+ set(abi_version "13.8")
+ else()
+ set(abi_version "13.0")
+ endif()
set(sip_disabled_features "[\"Krita_Qt5\"]")
else()
set(abi_version "12.8")
set(sip_disabled_features "[]")
endif()
+ message(STATUS "SIP ABI version: ${abi_version}")
+
set(module_tags)
if (QT_MAJOR_VERSION STREQUAL "5")
foreach(_tag ${SIP_TAGS})