From c6c2611fcc219c391c3c639bb85dc0c86a5abd77 Mon Sep 17 00:00:00 2001
From: pei-jiankang <peijiankang@kylinos.cn>
Date: Wed, 23 Feb 2022 11:50:41 +0800
Subject: [PATCH] modify find X11::X11 error

---
 KF5WindowSystemConfig.cmake.in | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/KF5WindowSystemConfig.cmake.in b/KF5WindowSystemConfig.cmake.in
index 98801b2..f6678d4 100644
--- a/KF5WindowSystemConfig.cmake.in
+++ b/KF5WindowSystemConfig.cmake.in
@@ -7,9 +7,7 @@ if(NOT @KWINDOWSYSTEM_NO_WIDGETS@)
     find_dependency(Qt@QT_MAJOR_VERSION@Widgets @REQUIRED_QT_VERSION@)
 endif()
 
-if(@X11_FOUND@)
-    find_dependency(X11)
-endif()
+find_dependency(X11)
 
 if(NOT @BUILD_SHARED_LIBS@)
     if(@WIN32@)
-- 
2.33.0

