minor fix to make gperftools integration a bit prettier
This commit is contained in:
parent
684171938a
commit
93d7addd28
|
@ -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}")
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue