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++
Fix density adjustment check not finding Qt6::Gui
Carsten Hartenfelsb88c4c4aa17b
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 5278215ae6..957cc15c93 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -842,10 +842,8 @@ KRITA_QT_HAS_ANDROID_INPUT_PLATFORM_DATA_SOFT_INPUT_ADJUST_NOTHING)-unset(KRITA_QT_HAS_ANDROID_QPLATFORMSCREEN_DENSITY_ADJUSTMENT CACHE)--set(required_includes_backup ${CMAKE_REQUIRED_INCLUDES})-list(APPEND CMAKE_REQUIRED_INCLUDES "${Qt${QT_MAJOR_VERSION}Gui_PRIVATE_INCLUDE_DIRS}")+set(CMAKE_REQUIRED_INCLUDES ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS} ${Qt${QT_MAJOR_VERSION}Gui_PRIVATE_INCLUDE_DIRS})+set(CMAKE_REQUIRED_LIBRARIES ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES})CHECK_CXX_SOURCE_COMPILES("#include <qpa/qplatformscreen.h>@@ -858,9 +856,6 @@ return screen->densityAdjustment();KRITA_QT_HAS_ANDROID_QPLATFORMSCREEN_DENSITY_ADJUSTMENT)-set(CMAKE_REQUIRED_INCLUDES ${required_includes_backup})-unset(required_includes_backup)-configure_file(config-qt-patches-present.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-qt-patches-present.h)unset(CMAKE_REQUIRED_INCLUDES)