aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake/plugin.cmake
diff options
context:
space:
mode:
authorOle Troan <otroan@employees.org>2023-04-26 10:08:59 +0200
committerDamjan Marion <dmarion@0xa5.net>2023-04-26 10:30:41 +0000
commitad92743925f1bcf706c39b536393aaecd12de661 (patch)
tree80a1b2d43e0a2f53af902b1eb3a0735f9517c7ca /src/cmake/plugin.cmake
parent816b5d613c3a977811af0494e2d215aac6684515 (diff)
build: plugin disable vat2 test2 plugin build
A plugin can set "VAT_AUTO_TEST_ OFF" to disable building of the autogenerated Type: improvement Change-Id: I856fbfd83bbc5c7df0759e550b20ac75df77d9d7 Signed-off-by: Ole Troan <otroan@employees.org>
Diffstat (limited to 'src/cmake/plugin.cmake')
-rw-r--r--src/cmake/plugin.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake
index b399470db02..4997d9a4420 100644
--- a/src/cmake/plugin.cmake
+++ b/src/cmake/plugin.cmake
@@ -15,7 +15,7 @@ macro(add_vpp_plugin name)
cmake_parse_arguments(PLUGIN
""
"LINK_FLAGS;COMPONENT;DEV_COMPONENT"
- "SOURCES;API_FILES;MULTIARCH_SOURCES;MULTIARCH_FORCE_ON;LINK_LIBRARIES;INSTALL_HEADERS;API_TEST_SOURCES;"
+ "SOURCES;API_FILES;MULTIARCH_SOURCES;MULTIARCH_FORCE_ON;LINK_LIBRARIES;INSTALL_HEADERS;API_TEST_SOURCES;VAT_AUTO_TEST"
${ARGN}
)
set(plugin_name ${name}_plugin)
@@ -108,7 +108,7 @@ macro(add_vpp_plugin name)
COMPONENT ${PLUGIN_COMPONENT}
)
endif()
- if (PLUGIN_API_FILES)
+ if (PLUGIN_API_FILES AND NOT PLUGIN_VAT_AUTO_TEST STREQUAL OFF)
add_vpp_test_library(${name}_test_plugin ${PLUGIN_API_FILES})
endif()