[plasma/kwayland] /: Fix cmake using --warn-uninitialized -Werror=dev

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7aa1989f46684bdb5757d73945f73e774543ce89 by Laurent Montel.
Committed on 22/07/2026 at 06:29.
Pushed by mlaurent into branch 'master'.

Fix cmake using --warn-uninitialized -Werror=dev

M  +2    -2    CMakeLists.txt
M  +0    -3    src/client/CMakeLists.txt

https://invent.kde.org/plasma/kwayland/-/commit/7aa1989f46684bdb5757d73945f73e774543ce89

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9b8b9706..55336ed1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,8 +45,8 @@ find_package(Qt6Gui ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Private)
 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED Concurrent)
 find_package(Qt6WaylandClient ${QT_MIN_VERSION} CONFIG REQUIRED NO_MODULE COMPONENTS Private)
 
-find_package(Qt6GuiPrivate ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
-find_package(Qt6WaylandClientPrivate ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
+find_package(Qt6GuiPrivate ${QT_MIN_VERSION} REQUIRED NO_MODULE)
+find_package(Qt6WaylandClientPrivate ${QT_MIN_VERSION} REQUIRED NO_MODULE)
 
 find_package(Wayland 1.24 COMPONENTS Client)
 set_package_properties(Wayland PROPERTIES
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index df59c950..192339c5 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/CMakeLists.txt
@@ -3,9 +3,6 @@ remove_definitions(-DQT_NO_CAST_FROM_ASCII)
 remove_definitions(-DQT_NO_CAST_TO_ASCII)
 remove_definitions(-DQT_NO_KEYWORDS)
 
-# needed to access QPA
-include_directories(SYSTEM ${Qt6Gui_PRIVATE_INCLUDE_DIRS})
-
 set(CLIENT_LIB_SRCS
     appmenu.cpp
     buffer.cpp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.