cmake/sdlchecks.cmake
changeset 7438 97c35b3811d1
parent 7400 243dad4e5f29
child 7507 885b4aab4190
     1.1 --- a/cmake/sdlchecks.cmake	Sat Jul 13 21:13:09 2013 +0200
     1.2 +++ b/cmake/sdlchecks.cmake	Sat Jul 13 20:24:09 2013 -0400
     1.3 @@ -312,8 +312,13 @@
     1.4      check_include_file(X11/extensions/scrnsaver.h HAVE_XSS_H)
     1.5      check_include_file(X11/extensions/shape.h HAVE_XSHAPE_H)
     1.6      check_include_files("X11/Xlib.h;X11/extensions/xf86vmode.h" HAVE_XF86VM_H)
     1.7 +    check_include_files("X11/Xlib.h;X11/Xproto.h;X11/extensions/Xext.h" HAVE_XEXT_H)
     1.8  
     1.9      if(X11_LIB)
    1.10 +      if(NOT HAVE_XEXT_H)
    1.11 +        message_error("Missing Xext.h, maybe you need to install the libxext-dev package?")
    1.12 +      endif()
    1.13 +
    1.14        set(HAVE_VIDEO_X11 TRUE)
    1.15        set(HAVE_SDL_VIDEO TRUE)
    1.16