rename GOOGLE_PERFTOOLS to GPERFTOOLS
parent
3980a439c0
commit
de1c2d78fd
|
@ -19,18 +19,18 @@ find_library(GPERFTOOLS_PROFILER
|
|||
|
||||
IF (GPERFTOOLS_TCMALLOC AND GPERFTOOLS_PROFILER)
|
||||
SET(TCMALLOC_LIBRARIES ${GPERFTOOLS_TCMALLOC})
|
||||
SET(GOOGLE_PERFTOOLS_FOUND "YES")
|
||||
SET(GPERFTOOLS_FOUND "YES")
|
||||
ELSE (GPERFTOOLS_TCMALLOC AND GPERFTOOLS_PROFILER)
|
||||
SET(GOOGLE_PERFTOOLS_FOUND "NO")
|
||||
SET(GPERFTOOLS_FOUND "NO")
|
||||
ENDIF (GPERFTOOLS_TCMALLOC AND GPERFTOOLS_PROFILER)
|
||||
|
||||
IF (GOOGLE_PERFTOOLS_FOUND)
|
||||
MESSAGE(STATUS "Found Google perftools: ${GPERFTOOLS_PROFILER}")
|
||||
ELSE (GOOGLE_PERFTOOLS_FOUND)
|
||||
IF (GPERFTOOLS_FOUND)
|
||||
MESSAGE(STATUS "Found Gperftools: ${GPERFTOOLS_PROFILER}")
|
||||
ELSE (GPERFTOOLS_FOUND)
|
||||
IF (GOOGLE_PERFTOOLS_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find Google perftools library")
|
||||
ENDIF (GOOGLE_PERFTOOLS_FIND_REQUIRED)
|
||||
ENDIF (GOOGLE_PERFTOOLS_FOUND)
|
||||
ENDIF (GPERFTOOLS_FOUND)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
GPERFTOOLS_TCMALLOC
|
||||
|
|
|
@ -7,7 +7,7 @@ else()
|
|||
list(APPEND possible_allocators BoostPool STL)
|
||||
set(preferred_allocator STL)
|
||||
endif()
|
||||
if(GOOGLE_PERFTOOLS_FOUND)
|
||||
if(GPERFTOOLS_FOUND)
|
||||
list(APPEND possible_allocators tcmalloc)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ if (GTSAM_USE_EIGEN_MKL)
|
|||
target_include_directories(gtsam PUBLIC ${MKL_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if (GOOGLE_PERFTOOLS_FOUND)
|
||||
if (GPERFTOOLS_FOUND)
|
||||
target_link_libraries(gtsam PRIVATE ${GPERFTOOLS_TCMALLOC} ${GPERFTOOLS_PROFILER})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue