aboutsummaryrefslogtreecommitdiff
path: root/cmake/target_api/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/target_api/CMakeLists.txt')
-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 8ef89c4a..e81c0b53 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)