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

Check for the Qt6 version of kseexpr

Halla Remptf172d7837cfb
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2a0c18922a..271ffd8737 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -898,7 +898,11 @@ set_package_properties(WebP PROPERTIES
##
## Test for KSeExpr
##
-find_package(KSeExpr 4.0.0.0)
+if (QT_MAJOR_VERSION STREQUAL "5")
+ find_package(KSeExpr 4.0.0.0)
+else()
+ find_package(KSeExpr 5.0.0.0)
+endif()
set_package_properties(KSeExpr PROPERTIES
URL "https://invent.kde.org/graphics/kseexpr"
TYPE OPTIONAL