From: Kefu Chai Date: Sun, 11 Apr 2021 04:54:18 +0000 (+0800) Subject: cmake: use the same name for macros and cmake variables X-Git-Tag: v17.1.0~2272^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3bee4b02611459b9ae949cebf5967e4d83ef55de;p=ceph.git 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 --- diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index ea9d46cfe776..a2d50aed896f 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 15911cbe8205..f2c0104f7d89 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -574,7 +574,7 @@ std::vector