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: explicitly link to QOpenGlWidgets

Halla Rempt58e70af501fa
diff --git a/libs/ui/CMakeLists.txt b/libs/ui/CMakeLists.txt
index a87b675a6a..0990442fb4 100644
--- a/libs/ui/CMakeLists.txt
+++ b/libs/ui/CMakeLists.txt
@@ -707,6 +707,13 @@ target_link_libraries(kritaui
kritaresources
)
+if (QT_MAJOR_VERSION STREQUAL "6")
+target_link_libraries(kritaui
+ PRIVATE
+ Qt6::OpenGLWidgets
+)
+endif()
+
if (Mlt7_FOUND)
target_link_libraries(kritaui PRIVATE SDL2::SDL2 Mlt7::mlt Mlt7::mlt++)
endif()