mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-24 21:49:10 +00:00
cmake: consider X11 as not available when xext.h is not found
This is user friendlier than straight up erroring
This commit is contained in:
parent
0ae57f1d90
commit
16ad3e5af6
1 changed files with 1 additions and 4 deletions
|
@ -313,10 +313,7 @@ macro(CheckX11)
|
|||
find_file(HAVE_XDBE_H NAMES "X11/extensions/Xdbe.h" HINTS "${X11_INCLUDEDIR}")
|
||||
find_file(HAVE_XEXT_H NAMES "X11/extensions/Xext.h" HINTS "${X11_INCLUDEDIR}")
|
||||
|
||||
if(X11_LIB)
|
||||
if(NOT HAVE_XEXT_H)
|
||||
message(FATAL_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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue