1 From 9c428c3c9f120a11468f98546bcc754d2c3302af Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 30 Jul 2015 10:02:15 +0200
4 Subject: [PATCH] FindOpenGLES2: also search for egl with pkg-config
6 The non-pkg-config path looks for both EGL *and* OpenGL ES, but not
7 the pkg-config path, which might lead to missing libraries/headers if
8 egl.pc has more header paths or libraries than glesv2.pc.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 FindOpenGLES2.cmake | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/CMakeLists.txt b/CMakeLists.txt
17 index 8b084cf..81bbe27 100644
24 - include_directories(${OpenGL_INCLUDE_DIR}
25 + include_directories(${OpenGL_INCLUDE_DIR} ${OpenGLES2_INCLUDE_DIRS}
28 ${platform_INCLUDE_DIRS}
29 diff --git a/FindOpenGLES2.cmake b/FindOpenGLES2.cmake
30 index e1b7d21..2a9ce0d 100644
31 --- a/FindOpenGLES2.cmake
32 +++ b/FindOpenGLES2.cmake
35 find_package(PkgConfig)
37 - pkg_check_modules(OpenGLES2 glesv2)
38 + pkg_check_modules(OpenGLES2 glesv2 egl)
39 endif(PKG_CONFIG_FOUND)
41 if(NOT OPENGLES2_FOUND)