Skip to content

Commit

Permalink
[circle-part-value-test] Adding DEPENDS (Samsung#7274)
Browse files Browse the repository at this point in the history
This commit adds required DEPENDS to `add_custom_command`.

ONE-DCO-1.0-Signed-off-by: seongwoo <[email protected]>
  • Loading branch information
mhs4670go authored Jul 20, 2021
1 parent ad7f2e4 commit 7af9c33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/circle-part-value-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ foreach(IDX RANGE ${RECIPE_LENGTH_M1})

add_custom_command(OUTPUT ${TFLITE_DST_PATH}
COMMAND ${CMAKE_COMMAND} -E copy "${TFLITE_SRC_PATH}" "${TFLITE_DST_PATH}"
DEPENDS ${TFLITE_SRC_PATH}
DEPENDS ${TFLITE_SRC_PATH} ${PARTITIONER_OUTPUT_PATH}
COMMENT "Copy ${RECIPE_NAME}.tflite"
)
list(APPEND TEST_DEPS ${TFLITE_DST_PATH})
Expand All @@ -60,7 +60,7 @@ foreach(IDX RANGE ${RECIPE_LENGTH_M1})

add_custom_command(OUTPUT ${CIRCLE_DST_PATH}
COMMAND ${CMAKE_COMMAND} -E copy "${CIRCLE_SRC_PATH}" "${CIRCLE_DST_PATH}"
DEPENDS ${CIRCLE_SRC_PATH}
DEPENDS ${CIRCLE_SRC_PATH} ${PARTITIONER_OUTPUT_PATH}
COMMENT "Copy ${RECIPE_NAME}.circle"
)
list(APPEND TEST_DEPS ${CIRCLE_DST_PATH})
Expand All @@ -72,7 +72,7 @@ foreach(IDX RANGE ${RECIPE_LENGTH_M1})

add_custom_command(OUTPUT ${PART_DST_PATH}
COMMAND ${CMAKE_COMMAND} -E copy "${PART_SRC_PATH}" "${PART_DST_PATH}"
DEPENDS ${PART_SRC_PATH}
DEPENDS ${PART_SRC_PATH} ${PARTITIONER_OUTPUT_PATH}
COMMENT "Copy ${PART_FILE}"
)
list(APPEND TEST_DEPS ${PART_DST_PATH})
Expand All @@ -93,7 +93,7 @@ foreach(IDX RANGE ${RECIPE_LENGTH_M1})
set(COUNT_FILE_PATH "${PARTITIONER_OUTPUT_PATH}/${COUNT_FILE}")
add_custom_command(OUTPUT ${COUNT_FILE_PATH}
COMMAND echo ${OUTPUT_COUNT} > ${COUNT_FILE_PATH}
DEPENDS ${PART_SRC_PATH}
DEPENDS ${PART_SRC_PATH} ${PARTITIONER_OUTPUT_PATH}
COMMENT "Write ${COUNT_FILE} with ${OUTPUT_COUNT}"
)
list(APPEND TEST_DEPS ${COUNT_FILE_PATH})
Expand Down

0 comments on commit 7af9c33

Please sign in to comment.