Fix cmake USE_GPERFTOOLS compiling error

Otherwise, I got weird errors like pthread library is not found when checking
compilers.
This commit is contained in:
Jingyu Zhou
2022-04-06 11:02:01 -07:00
parent ba8fbca038
commit 284dbdc473

View File

@@ -52,7 +52,6 @@ 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}")