minor fix to make gperftools integration a bit prettier

This commit is contained in:
Markus Pilman 2020-10-22 13:56:05 -06:00
parent 684171938a
commit 93d7addd28
2 changed files with 1 additions and 1 deletions

View File

@ -52,6 +52,7 @@ mark_as_advanced(
if (GPERFTOOLS_FOUND)
add_library(gperftools UNKNOWN IMPORTED)
target_compile_definitions(gperftools PUBLIC USE_GPERFTOOLS)
set_target_properties(gperftools PROPERTIES
IMPORTED_LOCATION ${GPERFTOOLS_TCMALLOC_AND_PROFILER}
INTERFACE_INCLUDE_DIRECTORIES "${GPERFTOOLS_INCLUDE_DIR}")

View File

@ -265,7 +265,6 @@ endif()
target_link_libraries(fdbserver PRIVATE toml11_target)
if (GPERFTOOLS_FOUND)
add_compile_definitions(USE_GPERFTOOLS)
target_link_libraries(fdbserver PRIVATE gperftools)
endif()