summaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake')
-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)