參考資訊:
https://techoverflow.net/2021/07/08/how-to-fix-cmake-error-could-not-find-a-package-configuration-file-provided-by-boost_unit_test_framework/
問題如下:
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_unit_test_framework" (requested version 1.74.0) with any of the following names: boost_unit_test_frameworkConfig.cmake boost_unit_test_framework-config.cmake Add the installation prefix of "boost_unit_test_framework" to CMAKE_PREFIX_PATH or set "boost_unit_test_framework_DIR" to a directory containing one of the above files. If "boost_unit_test_framework" 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) /usr/local/share/cmake-3.29/Modules/FindBoost.cmake:594 (find_package) qa/qa_utils/CMakeLists.txt:22 (find_package)
解法如下:
$ sudo apt -y install libboost-test-dev