Skip to content

Commit

Permalink
Fixing gperftool config by finding correct include location
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Mar 22, 2021
1 parent 010efcd commit 71246e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,10 @@ if((DEFINED JEMALLOC_ROOT) OR (APEX_WITH_JEMALLOC))
endif()

if((DEFINED GPERFTOOLS_ROOT) OR (APEX_WITH_TCMALLOC))
find_package(Tcmalloc)
find_package(Tcmalloc REQUIRED)
if (Tcmalloc_FOUND)
include_directories(${Tcmalloc_INCLUDE_DIRS})
add_definitions(-DAPEX_HAVE_TCMALLOC)
include_directories(${Tcmalloc_INCLUDE_DIR})
set(LIBS ${LIBS} ${Tcmalloc_LIBRARIES})
if (NOT BUILD_STATIC_EXECUTABLES)
set (CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_RPATH} ${Tcmalloc_LIBRARY_DIR})
Expand Down

0 comments on commit 71246e4

Please sign in to comment.