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

Add a Qt version check to make sure this builds with Qt5/Qt6

Luc Schrijvers381f74e57033
diff --git a/plugins/qt/designer/CMakeLists.txt b/plugins/qt/designer/CMakeLists.txt
index 7c775e2a4a..56b8ec4866 100644
--- a/plugins/qt/designer/CMakeLists.txt
+++ b/plugins/qt/designer/CMakeLists.txt
@@ -1,9 +1,9 @@
-find_package(Qt5 ${MIN_QT_VERSION}
+find_package(Qt${QT_MAJOR_VERSION} ${MIN_QT_VERSION}
REQUIRED COMPONENTS
Designer
)
-include_directories(${Qt5Designer_INCLUDE_DIRS})
+include_directories(${Qt${QT_MAJOR_VERSION}Designer_INCLUDE_DIRS})
set(KritaDesignerPlugin_SOURCES
KisColorSpaceSelectorPlugin.cpp