我在使用 CMake 时遇到以下错误。我不确定我做了什么改变了它查找 boost 的方式。我应该使用另一个 1.64 的 boost,但它似乎一直在寻找 1.74。不知道为什么。以下是...
我在使用 CMake 时遇到以下错误。我不确定我做了什么改变了它查找 boost 的方式。我应该使用另一个 1.64 的 boost,但它似乎一直在寻找 1.74。不知道为什么。以下是错误消息。
Sonar coverage enabled:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:141 (find_package):
Could not find a package configuration file provided by "boost_system"
(requested version 1.74.0) with any of the following names:
boost_systemConfig.cmake
boost_system-config.cmake
Add the installation prefix of "boost_system" to CMAKE_PREFIX_PATH or set
"boost_system_DIR" to a directory containing one of the above files. If
"boost_system" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boost_find_component)
/home/xcui/.local/share/JetBrains/Toolbox/apps/clion/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindBoost.cmake:594 (find_package)
CMakeLists.txt:492 (find_package)
我该如何让 CMake 找到正确的提升?任何指点都非常感谢。