![CMake 找不到 XMLRPC 包](https://linux22.com/image/1065176/CMake%20%E6%89%BE%E4%B8%8D%E5%88%B0%20XMLRPC%20%E5%8C%85.png)
我正在尝试在 Ubuntu 16.04 上运行 CMake 来构建项目(它是私有的,因此我无法粘贴 CMakeLists.txt 的完整内容)。CMake 在这一行失败:
find_package (XMLRPC REQUIRED c++2 client)
错误消息:
XMLRPC was not found. Make sure the entries XMLRPC_* are set.
我已经安装了 libxmlrpc 包,但这没有帮助。
$ sudo apt list --installed | grep -i xmlrpc
WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.
libxmlrpc-c++8-dev/xenial,now 1.33.14-1ubuntu1 amd64 [installed]
libxmlrpc-c++8v5/xenial,now 1.33.14-1ubuntu1 amd64 [installed]
libxmlrpc-core-c3/xenial,now 1.33.14-1ubuntu1 amd64 [installed]
libxmlrpc-core-c3-dev/xenial,now 1.33.14-1ubuntu1 amd64 [installed]
libxmlrpc-epi-dev/xenial-updates,xenial-security,now 0.54.2-1.1ubuntu0.1 amd64 [installed]
libxmlrpc-epi0/xenial-updates,xenial-security,now 0.54.2-1.1ubuntu0.1 amd64 [installed]
libxmlrpc-epi0-dbg/xenial-updates,xenial-security,now 0.54.2-1.1ubuntu0.1 amd64 [installed]
libxmlrpcpp-dev/xenial,now 1.11.16-3 amd64 [installed]
libxmlrpcpp0d/xenial,now 1.11.16-3 amd64 [installed,automatic]
哪个软件包需要 CMake?也许我需要手动将 CMake 指向某个已安装的软件包?
概括一下这个问题:正如我所理解的本手册 find_package
仅适用于列出的软件包。如何查找apt
这些 CMake 软件包中的任意一个?