[Piglit] [PATCH] Added test to verify EGL Header exists before checking for the egl library.
Kenney Phillis
kphillisjr at gmail.com
Sun Jul 8 12:43:35 PDT 2012
---
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index effa8d8..806b56f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -176,10 +176,13 @@ else (APPLE)
)
endif (APPLE)
+check_include_file(EGL/egl.h OPENGL_egl_HEADER)
+if(OPENGL_egl_HEADER)
FIND_LIBRARY(OPENGL_egl_LIBRARY
NAMES EGL
PATHS /usr/lib
)
+endif(OPENGL_egl_HEADER)
find_library(OPENGL_gles1_LIBRARY NAMES GLESv1_CM)
find_library(OPENGL_gles2_LIBRARY NAMES GLESv2)
--
1.7.9.5
More information about the Piglit
mailing list