[Piglit] [PATCH 2/2] cmake: buld cl with piglit_add_executable insead of add_executable

Dylan Baker baker.dylan.c at gmail.com
Fri Apr 11 16:33:17 PDT 2014


piglit_add_executable is used to actually install the final binary.
Without it the final binaries wont be installed with make install.

Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 tests/cl/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cl/CMakeLists.txt b/tests/cl/CMakeLists.txt
index 1b1ffc2..b6d3b8d 100644
--- a/tests/cl/CMakeLists.txt
+++ b/tests/cl/CMakeLists.txt
@@ -13,7 +13,7 @@ if(PIGLIT_HAS_POSIX_CLOCK_MONOTONIC)
 endif()
 
 function(piglit_cl_add_test)
-	add_executable(${ARGV})
+	piglit_add_executable(${ARGV})
 endfunction(piglit_cl_add_test)
 
 function(piglit_cl_add_custom_test name)
-- 
1.9.2



More information about the Piglit mailing list