Skip to content

Commit

Permalink
cmake: cleanup Findgperftools.cmake
Browse files Browse the repository at this point in the history
remove unused bits

Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Jul 25, 2016
1 parent 98c3df5 commit 07206f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmake/modules/Findgperftools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 07206f3

Please sign in to comment.