Drop faux X11 dependency and switch WITHOUT_X11 option to WITH_X11

X11 is nowhere needed in the codebase. Follow-up to 2f116f9fb2438a6e66b6702b3cc2ace9d0205f96

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2024-07-07 23:27:32 +02:00
committed by Christoph Cullmann
parent 9ab4a3a4ac
commit c5f2315c9d
5 changed files with 10 additions and 15 deletions

View File

@@ -105,12 +105,7 @@ set_package_properties(KF6DocTools PROPERTIES DESCRIPTION
find_package(ICU 61.0 COMPONENTS uc i18n REQUIRED)
if(UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAIKU)
option(WITHOUT_X11 "Build without X11 integration (skips finding X11)" OFF)
if(NOT WITHOUT_X11)
find_package(X11)
set_package_properties(X11 PROPERTIES TYPE OPTIONAL)
set(HAVE_X11 ${X11_FOUND})
endif()
option(WITH_X11 "Build with X11 integration" ON)
endif()
# Check for function GETPWUID