Minimize footprint of the MGR when WITH_MGR is off. Include the
minimal in MON. Don't include any MGR tests.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
add_subdirectory(libradosstriper)
endif()
-add_subdirectory(mgr)
+if(WITH_MGR)
+ add_subdirectory(mgr)
+endif()
set(librados_config_srcs
librados-config.cc)
../mds/MDSAuthCaps.cc
../mgr/mgr_commands.cc
../osd/OSDCap.cc
- $<TARGET_OBJECTS:mgr_cap_obj>)
+ ../mgr/MgrCap.cc)
+
+if(TARGET mgr_cap_obj)
+ list(APPEND lib_mon_srcs $<TARGET_OBJECTS:mgr_cap_obj>)
+endif()
if(HAVE_GSSAPI)
list(APPEND lib_mon_srcs
add_subdirectory(libcephsqlite)
add_subdirectory(client)
add_subdirectory(mon)
- add_subdirectory(mgr)
+ if(WITH_MGR)
+ add_subdirectory(mgr)
+ endif()
add_subdirectory(msgr)
add_subdirectory(neorados)
add_subdirectory(objectstore)
add_subdirectory(osd)
add_subdirectory(osdc)
add_subdirectory(immutable_object_cache)
-endif()
+endif(NOT WIN32)
if(WITH_RADOSGW)
set(rgw_libs rgw_a)