diff options
Diffstat (limited to 'src/cmake/plugin.cmake')
-rw-r--r-- | src/cmake/plugin.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake index 47296ed451f..1565170dedf 100644 --- a/src/cmake/plugin.cmake +++ b/src/cmake/plugin.cmake @@ -94,3 +94,12 @@ macro(add_vpp_plugin name) COMPONENT ${PLUGIN_COMPONENT} ) endmacro() + +macro(vpp_plugin_find_library plugin var name) + find_library(${var} NAMES ${name} ${ARGN}) +if (NOT ${var}) + message(WARNING "-- ${name} library not found - ${plugin} plugin disabled") + return() +endif() + message(STATUS "${plugin} plugin needs ${name} library - found at ${${var}}") +endmacro() |