Explicitly check for Xext.h in the CMake project, fail if missing.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 13 Jul 2013 20:24:09 -0400
changeset 7438 97c35b3811d1
parent 7437 964e8876ad3b
child 7439 f52afd324ec7
Explicitly check for Xext.h in the CMake project, fail if missing. Added to match configure script change in hg changeset 8f118396264b.
cmake/sdlchecks.cmake
--- a/cmake/sdlchecks.cmake	Sat Jul 13 21:13:09 2013 +0200
+++ b/cmake/sdlchecks.cmake	Sat Jul 13 20:24:09 2013 -0400
@@ -312,8 +312,13 @@
     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)