]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: cleanup Findgperftools.cmake
authorKefu Chai <kchai@redhat.com>
Wed, 10 Aug 2016 16:12:05 +0000 (00:12 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 11 Aug 2016 06:06:39 +0000 (14:06 +0800)
commit6c12edbf9d24db98795d07b49cbe32893d35798d
treee65f500a785b7989298826d67fad5da5a3959fa7
parentf440aec1bab35c5dc377256f032b7191303f346a
cmake: cleanup Findgperftools.cmake

* remove Findtcmalloc.cmake, use Findgperftools.cmake instead.
* tcmalloc is packaged in gperftools-dev, so we can check them in a single
  place.
* fix the check of heap-profiler.h, we should enable the check as long
  as tcmalloc is enabled or profiler is enabled.
* only check gperftools headers in "include/gperftools", and do not
  "include/google" anymore. as we only support the distros which
  shipping recent gperftools-dev package with "include/gperftools".
  and "google/*.h" are deprecated.
* set ALLOC_LIBS with GPERFTOOLS_TCMALLOC_LIBRARY, so we can link
  against tcmalloc with full path.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/Findgperftools.cmake
cmake/modules/Findtcmalloc.cmake [deleted file]
configure.ac
src/CMakeLists.txt
src/include/config-h.in.cmake
src/perfglue/cpu_profiler.cc
src/perfglue/heap_profiler.cc