diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-03-11 12:16:21 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-04-29 11:05:46 +0000 |
commit | 8dc8c51ec54f209331d0c1b3a895909787819aa9 (patch) | |
tree | 072d321234560c2db1b5573b342bf2dd3c4c4c10 /tests/util/CMakeLists.gl.txt | |
parent | 37d5d77bc1751e6e8f7d9f8c2706868314ec68cb (diff) |
cmake: add an option for building GLX tests
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/util/CMakeLists.gl.txt')
-rw-r--r-- | tests/util/CMakeLists.gl.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util/CMakeLists.gl.txt b/tests/util/CMakeLists.gl.txt index 1052c2699..7790e4f44 100644 --- a/tests/util/CMakeLists.gl.txt +++ b/tests/util/CMakeLists.gl.txt @@ -16,7 +16,7 @@ set(UTIL_SOURCES sized-internalformats.c ) -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +IF(BUILD_GLX_TESTS) # XXX: This is currently duplicated wherever tests # include "piglit-glx-util.h". Is it possible to refactor it? include_directories( @@ -40,7 +40,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ${UTIL_SOURCES} piglit-glx-util.c ) -ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +ENDIF(BUILD_GLX_TESTS) piglit_add_library (piglitutil ${UTIL_SOURCES} |