From 215411e056cc238876f51f4d47eb9bfb6f089fe5 Mon Sep 17 00:00:00 2001 From: Adrian Marius Negreanu Date: Thu, 18 Oct 2012 20:37:28 +0300 Subject: cmake: Add a PIGLIT_BUILD_GL_TESTS option The GL tests were compiled unconditionally. This breaks on systems that dont't have a GL library. Signed-off-by: Adrian Marius Negreanu Reviewed-by: Chad Versace --- cmake/target_api/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/target_api/CMakeLists.txt b/cmake/target_api/CMakeLists.txt index 8ef89c4a3..e81c0b538 100644 --- a/cmake/target_api/CMakeLists.txt +++ b/cmake/target_api/CMakeLists.txt @@ -23,7 +23,9 @@ # api-independent libraries on which the api-dependent targets rely. add_subdirectory(no_api) -add_subdirectory(gl) +if(PIGLIT_BUILD_GL_TESTS) + add_subdirectory(gl) +endif(PIGLIT_BUILD_GL_TESTS) if(PIGLIT_BUILD_GLES1_TESTS) add_subdirectory(gles1) -- cgit v1.2.3