]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add optional build flag 63412/head
authorAlex Wojno <awojno@bloomberg.net>
Wed, 21 May 2025 19:30:06 +0000 (19:30 +0000)
committerAlex Wojno <awojno@bloomberg.net>
Thu, 22 May 2025 16:29:44 +0000 (16:29 +0000)
Add WITH_CEPHADM as a build flag to control if cephadm should be built.

Signed-off-by: Alex Wojno <awojno@bloomberg.net>
src/CMakeLists.txt

index 801086e1268a121af683c32f043dd2ec4c92dd6d..8d00390dc277272f429124b2946b7fa9837f4526 100644 (file)
@@ -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