fix parallel build fail of test_cmake_out_source
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
44311f5c98
commit
89e7654fc9
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,12 @@ if(GEN_FILES)
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../include/psa/crypto_values.h
|
${CMAKE_CURRENT_SOURCE_DIR}/../include/psa/crypto_values.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../include/psa/crypto_extra.h
|
${CMAKE_CURRENT_SOURCE_DIR}/../include/psa/crypto_extra.h
|
||||||
)
|
)
|
||||||
|
# CMake generate sub-makefile for each target and call it in subprocess. Without
|
||||||
|
# this command, cmake will generate ruler in each sub makefile. As a result,
|
||||||
|
# they will conflict under parllel build.
|
||||||
|
# With this line, only 4 sub-makefiles include above command, that reduces
|
||||||
|
# conflict risk.
|
||||||
|
add_custom_target(test_suite_generated_data DEPENDS ${generated_data_files})
|
||||||
else()
|
else()
|
||||||
foreach(file ${base_generated_data_files})
|
foreach(file ${base_generated_data_files})
|
||||||
link_to_source(${file})
|
link_to_source(${file})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue