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++
Move patch header generation below their checks
Carsten Hartenfels92c02dad6941
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 6daa1e5cbe..6626a78c6b 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -678,8 +678,6 @@ option(KRITA_QT_HAS_UPDATE_COMPRESSION_PATCH "Qt has a custom patch for limitingadd_feature_info("Qt: Compressed updates patch" KRITA_QT_HAS_UPDATE_COMPRESSION_PATCH "Krita will compress the screen updates to the maximum FPS of available displays")-configure_file(config-qt-patches-present.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-qt-patches-present.h)-## Check for the presence the Wintab switch in Qt5#@@ -834,6 +832,8 @@ return Qt::ANDROID_INPUT_PLATFORM_DATA_SOFT_INPUT_ADJUST_NOTHING;KRITA_QT_HAS_ANDROID_INPUT_PLATFORM_DATA_SOFT_INPUT_ADJUST_NOTHING)+configure_file(config-qt-patches-present.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-qt-patches-present.h)+unset(CMAKE_REQUIRED_INCLUDES)unset(CMAKE_REQUIRED_LIBRARIES)