summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAdrian Marius Negreanu <adrian.m.negreanu@intel.com>2012-10-18 20:37:28 +0300
committerChad Versace <chad.versace@linux.intel.com>2012-10-22 13:53:23 -0700
commit215411e056cc238876f51f4d47eb9bfb6f089fe5 (patch)
tree42ac277d0b0e0fedefcea7b1cf5f7d587faa9fc3 /cmake
parentb3e3b82f65b5aefede8baf1287bdac135ad97e7b (diff)
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 <adrian.m.negreanu@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/target_api/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
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)