summaryrefslogtreecommitdiffstats
path: root/src/cmake/library.cmake
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-12-02 14:19:49 +0100
committerNeale Ranns <neale@graphiant.com>2021-02-08 11:41:12 +0000
commit7d527a2292bdabc84ff070f5b27f35c0e858cddd (patch)
tree4aee489caedb05eaf24ccb03d05f0fe5c383eb64 /src/cmake/library.cmake
parente5b7ca4bcea8c404d95e00f5db4c40d47b6e185b (diff)
misc: support api generated dependency for multiarch source
Fix dependency issues where multi-arch file is using API generated file. Type: improvement Change-Id: I5d4af7a630529bc138c35841723e38938f36d963 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/cmake/library.cmake')
-rw-r--r--src/cmake/library.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake
index 3f17e30daab..fdd34691a12 100644
--- a/src/cmake/library.cmake
+++ b/src/cmake/library.cmake
@@ -46,7 +46,7 @@ macro(add_vpp_library lib)
endif()
if(ARG_MULTIARCH_SOURCES)
- vpp_library_set_multiarch_sources(${lib} "${ARG_DEPENDS}" ${ARG_MULTIARCH_SOURCES})
+ vpp_library_set_multiarch_sources(${lib} DEPENDS ${ARG_DEPENDS} SOURCES ${ARG_MULTIARCH_SOURCES})
endif()
if(ARG_API_FILES)
@@ -65,6 +65,10 @@ macro(add_vpp_library lib)
endforeach()
endif()
+ if(NOT VPP_EXTERNAL_PROJECT)
+ add_dependencies(${lib} api_headers)
+ endif()
+
if(ARG_DEPENDS)
add_dependencies(${lib} ${ARG_DEPENDS})
endif()