[Piglit] [PATCH 2/3] egl: Fix CMake traversal into egl/spec dir

Chad Versace chad.versace at linux.intel.com
Fri Feb 15 17:43:27 PST 2013


CMake should add the egl/spec directory even if Piglit is not building
desktop GL tests.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 tests/egl/CMakeLists.gl.txt | 2 --
 tests/egl/CMakeLists.txt    | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/egl/CMakeLists.gl.txt b/tests/egl/CMakeLists.gl.txt
index 03b2ae0..fb73248 100644
--- a/tests/egl/CMakeLists.gl.txt
+++ b/tests/egl/CMakeLists.gl.txt
@@ -20,8 +20,6 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 	target_link_libraries(egl-create-surface pthread ${X11_X11_LIB})
 	piglit_add_executable (egl-query-surface egl-util.c egl-query-surface.c)
 	target_link_libraries(egl-query-surface pthread ${X11_X11_LIB})
-
-	add_subdirectory(spec)
 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 
 # vim: ft=cmake:
diff --git a/tests/egl/CMakeLists.txt b/tests/egl/CMakeLists.txt
index 144a306..96cc6a9 100644
--- a/tests/egl/CMakeLists.txt
+++ b/tests/egl/CMakeLists.txt
@@ -1 +1,3 @@
 piglit_include_target_api()
+
+add_subdirectory(spec)
-- 
1.8.1.1



More information about the Piglit mailing list