From: 박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 Date: Tue, 27 Mar 2018 01:30:58 +0000 (+0900) Subject: Set dependency on ACL version tag correctly (#190) X-Git-Tag: 0.1~582 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f76569e5e6a5752daeb18041b57e132be8cca9e1;p=platform%2Fcore%2Fml%2Fnnfw.git Set dependency on ACL version tag correctly (#190) This commit revises 'external/acl.cmake' to set dependency on ACL version tag correctly to support parallel/incremental build. Signed-off-by: Jonghyun Park --- diff --git a/externals/acl.cmake b/externals/acl.cmake index 7de2034..a428af4 100644 --- a/externals/acl.cmake +++ b/externals/acl.cmake @@ -3,11 +3,12 @@ ### set(ACL_BASE ${CMAKE_CURRENT_SOURCE_DIR}/acl) set(ACL_GENERATED ${CMAKE_CURRENT_BINARY_DIR}/acl_generated) +set(ACL_VERSION_TAG "${ACL_GENERATED}/arm_compute_version.embed") # Create 'arm_compute_version.embed' -add_custom_command(OUTPUT "arm_compute_version.embed" +add_custom_command(OUTPUT ${ACL_VERSION_TAG} COMMAND mkdir -p "${ACL_GENERATED}" - COMMAND echo '"unknown"' > "${ACL_GENERATED}/arm_compute_version.embed") + COMMAND echo '"unknown"' > "${ACL_VERSION_TAG}") file(GLOB_RECURSE ACL_UTIL_SRCS "${ACL_BASE}/src/core/utils/*.cpp") @@ -21,7 +22,7 @@ target_link_libraries(acl_foundation dl pthread) ### ARM Compute Library Common (Core & Runtime) ### file(GLOB ACL_CORE_COMMON_SRCS "${ACL_BASE}/src/core/*.cpp") -list(APPEND ACL_CORE_COMMON_SRCS "arm_compute_version.embed") +list(APPEND ACL_CORE_COMMON_SRCS ${ACL_VERSION_TAG}) # Both CL & NEON runtime funtions use these CPP kernels list(APPEND ACL_CORE_COMMON_SRCS "${ACL_BASE}/src/core/CPP/kernels/CPPCornerCandidatesKernel.cpp") list(APPEND ACL_CORE_COMMON_SRCS "${ACL_BASE}/src/core/CPP/kernels/CPPDetectionWindowNonMaximaSuppressionKernel.cpp")