From aa379710639b651a834484dc8d94e24070f91dd4 Mon Sep 17 00:00:00 2001 From: Alex Wojno Date: Wed, 21 May 2025 19:30:06 +0000 Subject: [PATCH] cephadm: add optional build flag Add WITH_CEPHADM as a build flag to control if cephadm should be built. Signed-off-by: Alex Wojno --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 801086e1268a1..8d00390dc2772 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -688,12 +688,16 @@ if(NOT CEPH_BUILD_VIRTUALENV) set(CEPH_BUILD_VIRTUALENV ${CMAKE_BINARY_DIR}) endif() +option(WITH_CEPHADM "Flag to determine if cephadm should be built" ON) + if(NOT WIN32) add_subdirectory(pybind) add_subdirectory(ceph-volume) add_subdirectory(ceph-node-proxy) add_subdirectory(python-common) -add_subdirectory(cephadm) + if(WITH_CEPHADM) + add_subdirectory(cephadm) + endif() endif(NOT WIN32) # Monitor -- 2.39.5