From 99151bde6ef4a75d5eaa8211a9ab921e8f270678 Mon Sep 17 00:00:00 2001 From: Tom Seidenberg Date: Wed, 17 Jun 2020 17:31:44 -0400 Subject: build: add cmake dependency from test plugin to api Type: fix Signed-off-by: Tom Seidenberg Change-Id: I00fa22733bd293e56eb6b81346fdf2d75ad9d88f --- src/cmake/plugin.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cmake') 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() -- cgit 1.2.3-korg