cmake: consider X11 as not available when xext.h is not found
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions

This is user friendlier than straight up erroring

Backport of 16ad3e5af6
This commit is contained in:
Anonymous Maarten
2025-01-05 16:06:01 +01:00
parent c9c991b559
commit fe5468799b
+1 -4
View File
@@ -459,10 +459,7 @@ macro(CheckX11)
find_file(HAVE_XDBE_H NAMES "X11/extensions/Xdbe.h" HINTS "${X_INCLUDEDIR}")
find_file(HAVE_XEXT_H NAMES "X11/extensions/Xext.h" HINTS "${X_INCLUDEDIR}")
if(X11_LIB)
if(NOT HAVE_XEXT_H)
message_error("Missing Xext.h, maybe you need to install the libxext-dev package?")
endif()
if(X11_LIB AND HAVE_XEXT_H)
set(HAVE_X11 TRUE)
set(HAVE_SDL_VIDEO TRUE)