aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmake/library.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake
index fbb2c68f218..ad4adfcabc4 100644
--- a/src/cmake/library.cmake
+++ b/src/cmake/library.cmake
@@ -80,6 +80,10 @@ macro(add_vpp_library lib)
add_dependencies(${lo} api_headers)
endif()
+ if(VPP_EXTERNAL_PROJECT AND ARG_API_FILES)
+ add_dependencies(${lo} ${lib}_api_headers)
+ endif()
+
if(ARG_DEPENDS)
add_dependencies(${lo} ${ARG_DEPENDS})
endif()