aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRuslan Babayev <ruslan@babayev.com>2020-12-23 01:08:38 -0800
committerDamjan Marion <dmarion@me.com>2020-12-25 11:43:59 +0000
commit05bc31be20849e5994eb798d9eed0ad506a57d18 (patch)
treeb0cf8b8848d31b3a0ace562e916656106f6bee69 /src
parentc547e91df7083007c87615ac1e37b6f223e575e9 (diff)
build: add plugin dependencies only when present
This fixes build for VPP_EXTERNAL_PROJECT plugin with missing PLUGIN_API_FILES. Type: fix Signed-off-by: Ruslan Babayev <ruslan@babayev.com> Change-Id: I687bedcd828d834b0a7de1363f0b2d063f75ee17
Diffstat (limited to 'src')
-rw-r--r--src/cmake/plugin.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake
index c165b5914dc..aca90ab7fb6 100644
--- a/src/cmake/plugin.cmake
+++ b/src/cmake/plugin.cmake
@@ -56,7 +56,9 @@ macro(add_vpp_plugin name)
if(NOT VPP_EXTERNAL_PROJECT)
list(APPEND deps vpp_version_h api_headers)
endif()
- add_dependencies(${plugin_name} ${deps})
+ if(deps)
+ add_dependencies(${plugin_name} ${deps})
+ endif()
set_target_properties(${plugin_name} PROPERTIES
PREFIX ""
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vpp_plugins)