CMake:未找到 Tcmalloc:Tcmalloc_LIBRARY-NOTFOUND

CMake:未找到 Tcmalloc:Tcmalloc_LIBRARY-NOTFOUND

我正在尝试在使用 Tcmalloc 的 C++ 项目中执行 CMake。

该虚拟机是新的,我首先尝试安装

sudo apt-get install libgoogle-perftools-dev

它还安装了 libtcmalloc-minimal4

Reading package lists... Done 
Building dependency tree        
Reading state information... Done 
The following additional packages will be installed:
   libgoogle-perftools4 liblzma-dev libtcmalloc-minimal4
   libtcmalloc-minimal4 (2.5-2.2ubuntu3) ... 
Setting up

但是 cmake 仍然产生以下警告:

 -- Not Found Tcmalloc: Tcmalloc_LIBRARY-NOTFOUND

我也执行了

dpkg -l | grep tcmalloc

 ii  libtcmalloc-minimal4      2.5-2.2ubuntu3      amd64      efficient thread-caching malloc

xUbuntu 版本:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

我是否错过了其他步骤或安装了其他软件包?我是否必须创建任何符号链接/usr/lib

相关内容