]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: cleanup Findgperftools.cmake
authorKefu Chai <kchai@redhat.com>
Mon, 25 Jul 2016 08:17:15 +0000 (16:17 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 25 Jul 2016 08:17:42 +0000 (16:17 +0800)
remove unused bits

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Findgperftools.cmake

index 28b08b6ffbe35e5592641a31cb3f27ae7bcd5c10..f1bf24a09b58b88753a8a7c15df831a56669419f 100644 (file)
@@ -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