Yi, As we discussed, we need to remove these generated kernel files with a make clean, and we need to generate them at next time of make. Otherwise, we need to do a extra "cmake ." which is really not convinient and not comply with the normal build policy.
I'd like to wait for your next version. On Fri, Dec 27, 2013 at 01:36:48PM +0800, Yi Sun wrote: > Signed-off-by: Yi Sun <[email protected]> > --- > utests/CMakeLists.txt | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt > index 6e5ef12..d9c1169 100644 > --- a/utests/CMakeLists.txt > +++ b/utests/CMakeLists.txt > @@ -7,7 +7,10 @@ EXEC_PROGRAM(python ${CMAKE_CURRENT_SOURCE_DIR} ARGS > utest_math_gen.py OUTPUT_VA > string(REGEX REPLACE " " ";" ADDMATHFUNC ${GEN_MATH_STRING}) > string(REGEX REPLACE " " "\n" NAMEMATHLIST ${GEN_MATH_STRING}) > MESSAGE(STATUS "Generated Builtin Math Functions:\n" ${NAMEMATHLIST}) > -set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES generated/) > + > +string(REGEX REPLACE "generated/([^\ ]*)\\.cpp" "../kernels/\\1.cl" > KERNEL_MATH_LIST ${GEN_MATH_STRING}) > +string(REGEX REPLACE " " ";" KERNEL_MATH_LIST ${KERNEL_MATH_LIST}) > +set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES > "generated;${KERNEL_MATH_LIST}") > > link_directories (${LLVM_LIBRARY_DIR}) > set (utests_sources > -- > 1.7.6.4 > > _______________________________________________ > Beignet mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
