]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: install python packages into $CMAKE_INSTALL_PREFIX
authorKefu Chai <kchai@redhat.com>
Mon, 4 Jul 2016 03:10:49 +0000 (11:10 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 4 Jul 2016 03:49:26 +0000 (11:49 +0800)
commit8c9ff9c5cb78022d78ea553fa62f14138c18ac40
treeec2ac20e98512cc0a29052bbe3ee70e7c27cdd74
parent313ab1b51aab7111b275f8b771dd6d2ebccc5424
cmake: install python packages into $CMAKE_INSTALL_PREFIX

* Distutils.cmake:
  set --prefix=${CMAKE_INSTALL_PREFIX} for python packages installed using
  setuptools. it was set to --prefix=/user only when $DESTDIR is set. so
  if user installs ceph using -DCMAKE_INSTALL_PREFIX, these python
  packages still go to /usr, which is unexpected.
* ceph-disk/CMakeLists.txt:
  install script into ${CMAKE_INSTALL_SBINDIR} instead of /usr/sbin

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Distutils.cmake
src/ceph-disk/CMakeLists.txt