Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: cleanup Findgperftools.cmake #10670

Merged
merged 3 commits into from Aug 11, 2016
Merged

cmake: cleanup Findgperftools.cmake #10670

merged 3 commits into from Aug 11, 2016

Conversation

tchaikov
Copy link
Contributor

  • 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.

Signed-off-by: Kefu Chai kchai@redhat.com

* 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>
* and reference leveldb library and include dir with fullpath

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
@alimaredia alimaredia merged commit ec24ff0 into master Aug 11, 2016
@tchaikov tchaikov deleted the wip-cmake branch August 11, 2016 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants