From f588c2123323425d159690e498aab4463d596512 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 18 Jun 2025 14:20:35 +0200 Subject: [PATCH] build: add knob to disable vcl VCL doesn't work with musl. Type: improvement Change-Id: I5cb69da680dc98d14d88e340b4db6b5a8584ff23 Signed-off-by: Damjan Marion --- src/plugins/hs_apps/CMakeLists.txt | 4 ++++ src/vcl/CMakeLists.txt | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/plugins/hs_apps/CMakeLists.txt b/src/plugins/hs_apps/CMakeLists.txt index 1d83175f64a..a30105397a7 100644 --- a/src/plugins/hs_apps/CMakeLists.txt +++ b/src/plugins/hs_apps/CMakeLists.txt @@ -11,6 +11,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +if(NOT VPP_BUILD_VCL) + return() +endif() + ############################################################################## # vpp builtin hs apps ############################################################################## diff --git a/src/vcl/CMakeLists.txt b/src/vcl/CMakeLists.txt index c8835e771c1..2787ce67802 100644 --- a/src/vcl/CMakeLists.txt +++ b/src/vcl/CMakeLists.txt @@ -14,6 +14,12 @@ ############################################################################## # vppcom shared library ############################################################################## + +option(VPP_BUILD_VCL "Build VCL" ON) +if(NOT VPP_BUILD_VCL) + return() +endif(NOT VPP_BUILD_VCL) + add_vpp_library(vppcom SOURCES vppcom.c -- 2.16.6