build: add cmake dependency from test plugin to api

Type: fix

Signed-off-by: Tom Seidenberg <tseidenb@cisco.com>
Change-Id: I00fa22733bd293e56eb6b81346fdf2d75ad9d88f
This commit is contained in:
Tom Seidenberg
2020-06-17 17:31:44 -04:00
committed by Damjan Marion
parent 961e3c8428
commit 99151bde6e

View File

@ -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()