[Beignet] [PATCH] delete generated files after a build and clean
Meng Mengmeng
mengmeng.meng at intel.com
Thu Feb 12 07:01:36 PST 2015
Building would generate some files e.g. src/git_sha1.h, and they
should be removed after clean.
Signed-off-by: Meng Mengmeng <mengmeng.meng at intel.com>
---
utests/CMakeLists.txt | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index eaba27d..ac32282 100644
--- a/utests/CMakeLists.txt
+++ b/utests/CMakeLists.txt
@@ -9,7 +9,17 @@ string(REGEX REPLACE " " ";" ADDMATHFUNC ${GEN_MATH_STRING})
string(REGEX REPLACE "generated/([^\ ]*)\\.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/../kernels/\\1.cl" KERNEL_MATH_LIST ${GEN_MATH_STRING})
string(REGEX REPLACE " " ";" KERNEL_MATH_LIST ${KERNEL_MATH_LIST})
string(REGEX REPLACE "generated/([^\ ]*)\\.cpp" "\\1.cl" KERNEL_GITIGNORE_LIST ${GEN_MATH_STRING})
-set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "generated;${KERNEL_MATH_LIST}")
+
+set(MAKE_CLEAN_FILE
+ ${CMAKE_CURRENT_SOURCE_DIR}/../CPackConfig.cmake
+ ${CMAKE_CURRENT_SOURCE_DIR}/../CPackSourceConfig.cmake
+ ${CMAKE_CURRENT_SOURCE_DIR}/../install_manifest.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/../intel-beignet.icd
+ ${CMAKE_CURRENT_SOURCE_DIR}/../src/git_sha1.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/../src/kernels/cl_internal_built_in_kernel.cl
+ ${CMAKE_CURRENT_SOURCE_DIR}/../utests/setenv.sh
+)
+set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "generated;${KERNEL_MATH_LIST};${MAKE_CLEAN_FILE}")
configure_file (
"setenv.sh.in"
--
1.9.1
More information about the Beignet
mailing list