diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index ec6b94344..3c30d4661 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -35,6 +35,7 @@ if(SERVERS) add_subdirectory(readline) add_subdirectory(jemalloc) add_subdirectory(gsoap) + add_subdirectory(gperftools) endif() if(TOOLS) diff --git a/deps/gperftools/CMakeLists.txt b/deps/gperftools/CMakeLists.txt new file mode 100644 index 000000000..f69cfe5b0 --- /dev/null +++ b/deps/gperftools/CMakeLists.txt @@ -0,0 +1,9 @@ +# +# Copyright (C) 2016+ AzerothCore , released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3 +# + +add_library(gperftools INTERFACE) + +target_link_libraries(gperftools + INTERFACE + ${GPERFTOOLS_LIBRARIES}) diff --git a/src/server/worldserver/CMakeLists.txt b/src/server/worldserver/CMakeLists.txt index 6cd093486..604c59196 100644 --- a/src/server/worldserver/CMakeLists.txt +++ b/src/server/worldserver/CMakeLists.txt @@ -61,7 +61,7 @@ target_link_libraries(worldserver scripts gsoap readline - ${GPERFTOOLS_LIBRARIES}) + gperftools) set_target_properties(worldserver PROPERTIES