Commit 8de771e6 authored by Jose Fonseca's avatar Jose Fonseca

cmake: Only build GLES tests by default on systems which support EGL.

GLES tests require EGL support, so it only make sense that they are on
on systems which support EGL, which is Linux ATM.
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent 540972b4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment