[Piglit] [PATCH] Added test to verify EGL Header exists before checking for the egl library.
Jose Fonseca
jfonseca at vmware.com
Wed Jul 11 14:48:20 PDT 2012
Looks good to me.
Do you have commit access?
BTW, we should actually move the EGL detection to a separate .cmake to ease sharing with other projects (e.g., mesademos)
Jose
----- Original Message -----
> ---
> 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
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
More information about the Piglit
mailing list