diff options
author | Ismo Puustinen <ismo.puustinen@intel.com> | 2017-05-23 11:27:23 +0300 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2017-05-25 17:56:11 +0800 |
commit | dc69332f39c06f52268caceab3ea8ed58e433bbb (patch) | |
tree | adaa5ebd6e226703bb4ecefc8a1d87b9c1b9df65 | |
parent | c5994621b2fc12f4eec4da7fc177c438fc757198 (diff) |
build: fix cmake code generation dependencies.
There is a race condition between building .bc and header files and
generating code from .cl targets. Fix the race by adding the
dependency to generated files.
Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 77a1c871..f87a6376 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,13 +18,13 @@ foreach (KF ${KERNEL_FILES}) OUTPUT ${output_file} COMMAND rm -rf ${output_file} COMMAND ${GBE_BIN_GENERATER} -s -o${output_file} -t${GEN_PCI_ID} ${input_file} - DEPENDS ${input_file} ${GBE_BIN_FILE}) + DEPENDS ${input_file} ${GBE_BIN_FILE} beignet_bitcode) else(GEN_PCI_ID) add_custom_command( OUTPUT ${output_file} COMMAND rm -rf ${output_file} COMMAND ${GBE_BIN_GENERATER} -s -o${output_file} ${input_file} - DEPENDS ${input_file} ${GBE_BIN_FILE}) + DEPENDS ${input_file} ${GBE_BIN_FILE} beignet_bitcode) endif(GEN_PCI_ID) endforeach (KF) endmacro (MakeKernelBinStr) |