diff options
author | Damjan Marion <damarion@cisco.com> | 2021-05-06 20:48:34 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-05-06 21:40:39 +0000 |
commit | 312fb4dbdf20e9d9ff47ccbcaaabba22ea7d20a4 (patch) | |
tree | 0d994fd6c0a71151c803a0d4e11af3b597d50aaa /src/cmake/plugin.cmake | |
parent | f4d338f0b44e28d9ad5b446422caf15fd871c8cd (diff) |
build: add FORCE_ON option for multiarch variants
Type: make
Change-Id: I37fb925a9cc2dfc21dd7874f4b20a6943b28efc8
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/cmake/plugin.cmake')
-rw-r--r-- | src/cmake/plugin.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake index 536ae9c318a..8038dfa1981 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;LINK_LIBRARIES;INSTALL_HEADERS;API_TEST_SOURCES;" + "SOURCES;API_FILES;MULTIARCH_SOURCES;MULTIARCH_FORCE_ON;LINK_LIBRARIES;INSTALL_HEADERS;API_TEST_SOURCES;" ${ARGN} ) set(plugin_name ${name}_plugin) @@ -64,7 +64,11 @@ macro(add_vpp_plugin name) PREFIX "" LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vpp_plugins) if(PLUGIN_MULTIARCH_SOURCES) - vpp_library_set_multiarch_sources(${plugin_name} SOURCES ${PLUGIN_MULTIARCH_SOURCES} DEPENDS ${deps}) + vpp_library_set_multiarch_sources(${plugin_name} + SOURCES ${PLUGIN_MULTIARCH_SOURCES} + DEPENDS ${deps} + FORCE_ON ${PLUGIN_MULTIARCH_FORCE_ON} + ) endif() if(PLUGIN_LINK_LIBRARIES) target_link_libraries(${plugin_name} ${PLUGIN_LINK_LIBRARIES}) |