Merge pull request #1917 from borglab/gperftools-switch
commit
628111202d
|
@ -36,3 +36,5 @@ MARK_AS_ADVANCED(
|
|||
GPERFTOOLS_TCMALLOC
|
||||
GPERFTOOLS_PROFILER
|
||||
)
|
||||
|
||||
option(GTSAM_ENABLE_GPERFTOOLS "Enable/Disable Gperftools" OFF)
|
||||
|
|
|
@ -147,7 +147,7 @@ if (GTSAM_USE_EIGEN_MKL)
|
|||
target_include_directories(gtsam PUBLIC ${MKL_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if (GPERFTOOLS_FOUND)
|
||||
if (GTSAM_ENABLE_GPERFTOOLS AND GPERFTOOLS_FOUND)
|
||||
target_link_libraries(gtsam PRIVATE ${GPERFTOOLS_TCMALLOC} ${GPERFTOOLS_PROFILER})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue