From c43bac48b07c9594f18541250e2d96c0c7621106 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 28 Oct 2017 01:57:55 +0800 Subject: [PATCH] cmake: fix indent Signed-off-by: Kefu Chai --- CMakeLists.txt | 42 +++++++++++++++++++++--------------------- src/CMakeLists.txt | 26 ++++++++++++-------------- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17a8d7d90a81b..4917c6b3d488a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,16 +192,16 @@ if(${WITH_BLUESTORE}) endif(${WITH_BLUESTORE}) option(WITH_OPENLDAP "OPENLDAP is here" ON) -if(${WITH_OPENLDAP}) -find_package(OpenLdap REQUIRED) -set(HAVE_OPENLDAP ${OPENLDAP_FOUND}) -endif(${WITH_OPENLDAP}) +if(WITH_OPENLDAP) + find_package(OpenLdap REQUIRED) + set(HAVE_OPENLDAP ${OPENLDAP_FOUND}) +endif() option(WITH_FUSE "Fuse is here" ON) -if(${WITH_FUSE}) -find_package(fuse) -set(HAVE_LIBFUSE ${FUSE_FOUND}) -endif(${WITH_FUSE}) +if(WITH_FUSE) + find_package(fuse) + set(HAVE_LIBFUSE ${FUSE_FOUND}) +endif() option(WITH_XFS "XFS is here" ON) if(WITH_XFS) @@ -338,14 +338,14 @@ endif(USE_NSS) option(WITH_XIO "Enable XIO messaging" OFF) if(WITH_XIO) find_package(xio REQUIRED) -set(HAVE_XIO ${XIO_FOUND}) -endif(WITH_XIO) + set(HAVE_XIO ${XIO_FOUND}) +endif() option(WITH_DPDK "Enable DPDK messaging" OFF) if(WITH_DPDK) -find_package(dpdk) -set(HAVE_DPDK ${DPDK_FOUND}) -endif(WITH_DPDK) + find_package(dpdk) + set(HAVE_DPDK ${DPDK_FOUND}) +endif() option(WITH_BLKIN "Use blkin to emit LTTng tracepoints for Zipkin" OFF) if(WITH_BLKIN) @@ -412,21 +412,21 @@ option(WITH_CEPHFS "CephFS is enabled" ON) #option for Mgr option(WITH_MGR "ceph-mgr is enabled" ON) if(WITH_MGR) - set(Python_ADDITIONAL_VERSIONS 2.7) - find_package(PythonInterp 2.7 REQUIRED) - find_package(PythonLibs 2.7 REQUIRED) - # Boost dependency check deferred to Boost section + set(Python_ADDITIONAL_VERSIONS 2.7) + find_package(PythonInterp 2.7 REQUIRED) + find_package(PythonLibs 2.7 REQUIRED) + # Boost dependency check deferred to Boost section endif(WITH_MGR) option(WITH_THREAD_SAFE_RES_QUERY "res_query is thread safe" OFF) if(WITH_THREAD_SAFE_RES_QUERY) - set(HAVE_THREAD_SAFE_RES_QUERY 1 CACHE INTERNAL "Thread safe res_query supported.") -endif(WITH_THREAD_SAFE_RES_QUERY) + set(HAVE_THREAD_SAFE_RES_QUERY 1 CACHE INTERNAL "Thread safe res_query supported.") +endif() option(WITH_REENTRANT_STRSIGNAL "strsignal is reentrant" OFF) if(WITH_REENTRANT_STRSIGNAL) - set(HAVE_REENTRANT_STRSIGNAL 1 CACHE INTERNAL "Reentrant strsignal is supported.") -endif(WITH_REENTRANT_STRSIGNAL) + set(HAVE_REENTRANT_STRSIGNAL 1 CACHE INTERNAL "Reentrant strsignal is supported.") +endif() set(HAVE_LIBROCKSDB 1) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9c9fa76e2e2db..fb2f558d021d9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -865,8 +865,8 @@ add_subdirectory(erasure-code) # Support/Tools if(WITH_TESTS) -add_subdirectory(googletest/googlemock) -add_subdirectory(test) + add_subdirectory(googletest/googlemock) + add_subdirectory(test) endif(WITH_TESTS) add_subdirectory(compressor) @@ -892,13 +892,11 @@ if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE)) endif() if(WITH_TESTS) - -configure_file(${CMAKE_SOURCE_DIR}/src/ceph-coverage.in - ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-coverage @ONLY) - -configure_file(${CMAKE_SOURCE_DIR}/src/ceph-debugpack.in - ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-debugpack @ONLY) -endif(WITH_TESTS) + configure_file(${CMAKE_SOURCE_DIR}/src/ceph-coverage.in + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-coverage @ONLY) + configure_file(${CMAKE_SOURCE_DIR}/src/ceph-debugpack.in + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-debugpack @ONLY) +endif() configure_file(${CMAKE_SOURCE_DIR}/src/ceph.in ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph @ONLY) @@ -913,11 +911,11 @@ configure_file(ceph-post-file.in ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-post-file @ONLY) if(WITH_TESTS) -install(PROGRAMS - ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-debugpack - ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-coverage - DESTINATION bin) -endif(WITH_TESTS) + install(PROGRAMS + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-debugpack + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-coverage + DESTINATION bin) +endif() install(PROGRAMS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph -- 2.39.5