From: Kefu Chai Date: Mon, 25 Jul 2016 08:17:15 +0000 (+0800) Subject: cmake: cleanup Findgperftools.cmake X-Git-Tag: ses5-milestone5~300^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=07206f3173699d733d5cca156a103ecd4ee3cc38;p=ceph.git cmake: cleanup Findgperftools.cmake remove unused bits Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/Findgperftools.cmake b/cmake/modules/Findgperftools.cmake index 28b08b6ffbe3..f1bf24a09b58 100644 --- a/cmake/modules/Findgperftools.cmake +++ b/cmake/modules/Findgperftools.cmake @@ -9,10 +9,7 @@ if(GPERFTOOLS_INCLUDE_DIR AND GPERFTOOLS_LIBRARIES) set(GPERFTOOLS_FIND_QUIETLY TRUE) endif(GPERFTOOLS_INCLUDE_DIR AND GPERFTOOLS_LIBRARIES) -INCLUDE(CheckCXXSymbolExists) - # include dir - find_path(GPERFTOOLS_INCLUDE_DIR profiler.h NO_DEFAULT_PATH PATHS /usr/include /usr/include/gperftools @@ -21,10 +18,8 @@ find_path(GPERFTOOLS_INCLUDE_DIR profiler.h NO_DEFAULT_PATH PATHS /usr/local/include ) - # finally the library itself find_library(LIBPROFILER NAMES profiler) -CHECK_INCLUDE_FILES("google/profiler.h" HAVE_PROFILER_H) set(GPERFTOOLS_LIBRARIES ${LIBPROFILER}) # handle the QUIETLY and REQUIRED arguments and set GPERFTOOLS_FOUND to TRUE if