simpler this way
and drop the comment, which is not relevant.
Signed-off-by: Kefu Chai <kchai@redhat.com>
add_subdirectory(dashboard)
endif()
add_subdirectory(insights)
-add_subdirectory(rook)
-
+if(WITH_MGR_ROOK_CLIENT)
+ add_subdirectory(rook)
+endif()
if(WITH_TESTS)
include(AddCephTest)
add_tox_test(mgr ${CMAKE_CURRENT_SOURCE_DIR} TOX_ENVS mypy)
-# if(WITH_MGR_DASHBOARD_FRONTEND AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64|arm|ARM")
-
-if (WITH_MGR_ROOK_CLIENT)
add_custom_command(
OUTPUT rook_client/__init__.py
COMMAND ./generate_rook_ceph_client.sh
)
add_dependencies(ceph-mgr mgr-rook-client)
-endif (WITH_MGR_ROOK_CLIENT)
\ No newline at end of file