diff options
Diffstat (limited to 'src/cmake')
-rw-r--r-- | src/cmake/library.cmake | 9 | ||||
-rw-r--r-- | src/cmake/plugin.cmake | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake index 37239f3d680..5a7d2cdfef7 100644 --- a/src/cmake/library.cmake +++ b/src/cmake/library.cmake @@ -136,3 +136,12 @@ macro(add_vpp_test_library lib) # ) endforeach() endmacro() + +macro(vpp_find_library var) + find_library(${var} ${ARGN}) + mark_as_advanced(${var}) +endmacro() +macro(vpp_find_path var) + find_path(${var} ${ARGN}) + mark_as_advanced(${var}) +endmacro() diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake index 9b0383f583d..536ae9c318a 100644 --- a/src/cmake/plugin.cmake +++ b/src/cmake/plugin.cmake @@ -115,6 +115,7 @@ endmacro() macro(vpp_plugin_find_library plugin var name) find_library(${var} NAMES ${name} ${ARGN}) + mark_as_advanced(${var}) if (NOT ${var}) message(WARNING "-- ${name} library not found - ${plugin} plugin disabled") return() |