diff options
author | Kefu Chai <kchai@redhat.com> | 2019-02-15 13:14:53 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2019-02-16 09:38:27 +0100 |
commit | 6a788dac0150bb64d5145a7278381b512e275f87 (patch) | |
tree | d866d71651bbdceafcb9ec0b69b7419dda5fed36 /src/CMakeLists.txt | |
parent | cmake: move install(.. ./mgr) down to mgr (diff) | |
download | ceph-6a788dac0150bb64d5145a7278381b512e275f87.tar.xz ceph-6a788dac0150bb64d5145a7278381b512e275f87.zip |
cmake: install mgr plugins into $prefix/share/ceph
as mgr plugins are architecture independent source files. see also
/usr/share/cmake-*/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3f7123f5451..3031524230d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,6 +4,8 @@ include(GNUInstallDirs) # for erasure and compressor plugins set(CMAKE_INSTALL_PKGLIBDIR ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}) set(CMAKE_INSTALL_FULL_PKGLIBDIR ${CMAKE_INSTALL_FULL_LIBDIR}/${PROJECT_NAME}) +# for mgr plugins +set(CEPH_INSTALL_DATADIR ${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}) # so libceph-common can be found set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) if(NOT CMAKE_INSTALL_RPATH) @@ -17,7 +19,7 @@ set(libdir ${CMAKE_INSTALL_FULL_LIBDIR}) set(sysconfdir ${CMAKE_INSTALL_FULL_SYSCONFDIR}) set(libexecdir ${CMAKE_INSTALL_FULL_LIBEXECDIR}) set(pkgdatadir ${CMAKE_INSTALL_FULL_DATADIR}) -set(datadir ${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}) +set(datadir ${CEPH_INSTALL_DATADIR}) set(prefix ${CMAKE_INSTALL_PREFIX}) add_definitions("-DHAVE_CONFIG_H -D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS") |