[Beignet] [PATCH] GBE/libocl: fix build dependency issue.

He Junyan junyan.he at inbox.com
Wed Sep 17 22:18:54 PDT 2014


LGTM

On 四, 2014-09-18 at 08:35 +0800, Zhigang Gong wrote:
> Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
> ---
>  backend/src/libocl/CMakeLists.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/backend/src/libocl/CMakeLists.txt b/backend/src/libocl/CMakeLists.txt
> index f015eec..b0074b3 100644
> --- a/backend/src/libocl/CMakeLists.txt
> +++ b/backend/src/libocl/CMakeLists.txt
> @@ -72,7 +72,7 @@ MACRO(GENERATE_HEADER_PY _mod)
>  	COMMAND ${PYTHON_EXECUTABLE} ${LIBOCL_SOURCE_DIR}/script/gen_vector.py ${def_name} ${output_name} 1
>  	#COMMAND echo "echo \\#endif \\>\\> ${output_name}"
>  	COMMAND echo "\\#endif" >> ${output_name}
> -	DEPENDS ${tmpl_name}
> +	DEPENDS ${tmpl_name} ${def_name} ${LIBOCL_SOURCE_DIR}/script/gen_vector.py
>  	COMMENT "Generate the header by python: ${output_name}"
>  	)
>  ENDMACRO(GENERATE_HEADER_PY)
> @@ -85,7 +85,7 @@ MACRO(GENERATE_SOURCE_PY _mod)
>  	COMMAND mkdir -p ${LIBOCL_BINARY_DIR}/src/
>  	COMMAND cat ${tmpl_name} > ${output_name}
>  	COMMAND ${PYTHON_EXECUTABLE} ${LIBOCL_SOURCE_DIR}/script/gen_vector.py ${def_name} ${output_name} 0
> -	DEPENDS ${tmpl_name}
> +	DEPENDS ${tmpl_name} ${def_name} ${LIBOCL_SOURCE_DIR}/script/gen_vector.py
>  	COMMENT "Generate the source by python: ${output_name}"
>  	)
>  ENDMACRO(GENERATE_SOURCE_PY)





More information about the Beignet mailing list