Skip to content

Commit

Permalink
cmake: consider X11 as not available when xext.h is not found
Browse files Browse the repository at this point in the history
This is user friendlier than straight up erroring

Backport of 16ad3e5
  • Loading branch information
madebr committed Jan 5, 2025
1 parent c9c991b commit fe54687
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/sdlchecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fe54687

Please sign in to comment.