]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: add the autoconf path variables back
authorKefu Chai <kchai@redhat.com>
Sat, 28 May 2016 09:09:37 +0000 (17:09 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Jun 2016 15:49:46 +0000 (23:49 +0800)
commitce942bd619e542103d116deb694cc4b05f78f42f
tree2952985f394276418c14a97ae8bfd92a0e4ddc6d
parentc192846c06950e37ad509ef56af640a6cec9a7d4
cmake: add the autoconf path variables back

* partially revert 7a602ec.
* the directory variables created by automake, like "prefix", "bindir",
  and "libdir", are used for generating configuration_file() for substitution,
  and they should have the same names with ones from autotools.
* also fix the ${pkglibdir}, it should be the ${libdir}/${PACKAGE}. so
  the plugins are not installed into ${libdir}, in which the installed shared
  objects are supposed to be shared with other applications.
* install shared libraries into ${CMAKE_INSTALL_LIBDIR} instead of
  ${prefix}/lib. this complies to what ceph.spec.in requires:
  ceph.spec.in expects the shared libraries to be installed into
  ${_libdir}, and ${_libdir} is /usr/lib64 on an amd64 machine.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt