use the switch

release/4.3a0
Varun Agrawal 2024-12-06 11:32:34 -05:00
parent 2aa22005f1
commit c00de92854
1 changed files with 1 additions and 1 deletions

View File

@ -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()