aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake/library.cmake
diff options
context:
space:
mode:
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()