cmake/sdlchecks.cmake
changeset 13582 85c4a2f0464d
parent 12974 0fef4b21fa1d
child 13648 1631ba283bc4
equal deleted inserted replaced
13581:735c5920fc62 13582:85c4a2f0464d
   755     endif()
   755     endif()
   756   endif()
   756   endif()
   757 endmacro()
   757 endmacro()
   758 
   758 
   759 # Requires:
   759 # Requires:
   760 # - nada
   760 # - PkgCheckModules
   761 macro(CheckOpenGLESX11)
   761 macro(CheckOpenGLESX11)
       
   762   pkg_check_modules(EGL egl)
       
   763   set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${EGL_CFLAGS}")
   762   if(VIDEO_OPENGLES)
   764   if(VIDEO_OPENGLES)
   763     check_c_source_compiles("
   765     check_c_source_compiles("
   764         #define EGL_API_FB
   766         #define EGL_API_FB
   765         #include <EGL/egl.h>
   767         #include <EGL/egl.h>
   766         int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGL_EGL)
   768         int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGL_EGL)