Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Explicitly check for Xext.h in the CMake project, fail if missing.
Browse files Browse the repository at this point in the history
Added to match configure script change in hg changeset 8f118396264b.
  • Loading branch information
icculus committed Jul 14, 2013
1 parent cb0cdc6 commit 8f59cb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/sdlchecks.cmake
Expand Up @@ -312,8 +312,13 @@ macro(CheckX11)
check_include_file(X11/extensions/scrnsaver.h HAVE_XSS_H)
check_include_file(X11/extensions/shape.h HAVE_XSHAPE_H)
check_include_files("X11/Xlib.h;X11/extensions/xf86vmode.h" HAVE_XF86VM_H)
check_include_files("X11/Xlib.h;X11/Xproto.h;X11/extensions/Xext.h" HAVE_XEXT_H)

if(X11_LIB)
if(NOT HAVE_XEXT_H)
message_error("Missing Xext.h, maybe you need to install the libxext-dev package?")
endif()

set(HAVE_VIDEO_X11 TRUE)
set(HAVE_SDL_VIDEO TRUE)

Expand Down

0 comments on commit 8f59cb6

Please sign in to comment.