From 3bee4b02611459b9ae949cebf5967e4d83ef55de Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 11 Apr 2021 12:54:18 +0800 Subject: [PATCH] cmake: use the same name for macros and cmake variables for two reasons, * consolidate the namings * pave the road to yamlize options where we will use cmake variables to substitude the @@ in .in files instead of relying on C/C++ macros Signed-off-by: Kefu Chai --- src/common/CMakeLists.txt | 6 +++--- src/common/options.cc | 8 ++++---- src/crimson/CMakeLists.txt | 6 +++--- src/pybind/mgr/CMakeLists.txt | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index ea9d46cfe7768..a2d50aed896f9 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -183,9 +183,9 @@ add_library(common-common-objs OBJECT target_include_directories(common-common-objs PRIVATE ${OPENSSL_INCLUDE_DIR}) # for options.cc target_compile_definitions(common-common-objs PRIVATE - "CEPH_LIBDIR=\"${CMAKE_INSTALL_FULL_LIBDIR}\"" - "CEPH_PKGLIBDIR=\"${CEPH_INSTALL_FULL_PKGLIBDIR}\"" - "CEPH_DATADIR=\"${CEPH_INSTALL_DATADIR}\"") + "CMAKE_INSTALL_LIBDIR=\"${CMAKE_INSTALL_LIBDIR}\"" + "CEPH_INSTALL_FULL_PKGLIBDIR=\"${CEPH_INSTALL_FULL_PKGLIBDIR}\"" + "CEPH_INSTALL_DATADIR=\"${CEPH_INSTALL_DATADIR}\"") set(common_mountcephfs_srcs armor.c diff --git a/src/common/options.cc b/src/common/options.cc index 15911cbe8205f..f2c0104f7d896 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -574,7 +574,7 @@ std::vector