Reviewed-by: Marek Olšák <[email protected]>

Marek

On Mon, Jun 8, 2015 at 2:43 PM, Jose Fonseca <[email protected]> wrote:
> GLES tests require EGL support, so it only make sense that they are on
> on systems which support EGL, which is Linux ATM.
> ---
>  CMakeLists.txt | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index edb5997..3ae892d 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -35,10 +35,16 @@ if(X11_FOUND)
>         add_definitions(-DPIGLIT_HAS_X11)
>  endif()
>
> +if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
> +       set(PIGLIT_BUILD_GLES_TESTS_DEFAULT ON)
> +else()
> +       set(PIGLIT_BUILD_GLES_TESTS_DEFAULT OFF)
> +endif()
> +
>  option(PIGLIT_BUILD_GL_TESTS "Build tests for OpenGL" ON)
> -option(PIGLIT_BUILD_GLES1_TESTS "Build tests for OpenGL ES1" ON)
> -option(PIGLIT_BUILD_GLES2_TESTS "Build tests for OpenGL ES2" ON)
> -option(PIGLIT_BUILD_GLES3_TESTS "Build tests for OpenGL ES3" ON)
> +option(PIGLIT_BUILD_GLES1_TESTS "Build tests for OpenGL ES1" 
> ${PIGLIT_BUILD_GLES_TESTS_DEFAULT})
> +option(PIGLIT_BUILD_GLES2_TESTS "Build tests for OpenGL ES2" 
> ${PIGLIT_BUILD_GLES_TESTS_DEFAULT})
> +option(PIGLIT_BUILD_GLES3_TESTS "Build tests for OpenGL ES3" 
> ${PIGLIT_BUILD_GLES_TESTS_DEFAULT})
>  option(PIGLIT_BUILD_CL_TESTS "Build tests for OpenCL" OFF)
>
>  if(PIGLIT_BUILD_GL_TESTS)
> --
> 2.1.0
>
> _______________________________________________
> Piglit mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/piglit
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to