aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Seidenberg <tseidenb@cisco.com>2020-06-17 17:31:44 -0400
committerDamjan Marion <dmarion@me.com>2020-06-19 07:04:08 +0000
commit99151bde6ef4a75d5eaa8211a9ab921e8f270678 (patch)
treec1db30891c48f2822a56604277a1a89d6533e8ea /src
parent961e3c8428be81ae74f7e8ee293b16808a74d45e (diff)
build: add cmake dependency from test plugin to api
Type: fix Signed-off-by: Tom Seidenberg <tseidenb@cisco.com> Change-Id: I00fa22733bd293e56eb6b81346fdf2d75ad9d88f
Diffstat (limited to 'src')
-rw-r--r--src/cmake/plugin.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake
index bf40aa504a7..c37e349477e 100644
--- a/src/cmake/plugin.cmake
+++ b/src/cmake/plugin.cmake
@@ -78,6 +78,9 @@ macro(add_vpp_plugin name)
add_library(${test_plugin_name} SHARED ${PLUGIN_API_TEST_SOURCES}
${api_includes})
set_target_properties(${test_plugin_name} PROPERTIES NO_SONAME 1)
+ if(PLUGIN_API_FILES)
+ add_dependencies(${test_plugin_name} ${plugin_name}_api_headers)
+ endif()
if(NOT VPP_EXTERNAL_PROJECT)
add_dependencies(${test_plugin_name} api_headers)
endif()