为什么Cmake找不到Boost组件?

Why can't Cmake find Boost components?

我正在尝试构建一个名为 tds2pdb on Windows. It requires Boost, so I downloaded Boost 1.78.0 的开源项目,并通过使用命令 bootstrap.\b2 的推荐方法构建库。然后我启动了 Cmake GUI 并告诉它在哪里可以找到 Boost。但是当我点击配置时,它说它缺少 3 个组件。

文本错误:

CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost (missing: filesystem program_options iostreams) (found
  suitable version "1.78.0", minimum required is "1.55")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2375 (find_package_handle_standard_args)
  CMakeLists.txt:26 (find_package)

boost_1_78_0\stage\lib 目录中肯定有必要的库,所以我不明白为什么找不到它们。


根据评论中的建议,我设置了标志Boost_DEBUG,然后输出如下:

[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1688 ] _boost_TEST_VERSIONS = "1.78.0;1.78;1.77.0;1.77;1.76.0;1.76;1.75.0;1.75;1.74.0;1.74;1.73.0;1.73;1.72.0;1.72;1.71.0;1.71;1.70.0;1.70;1.69.0;1.69;1.68.0;1.68;1.67.0;1.67;1.66.0;1.66;1.65.1;1.65.0;1.65;1.64.0;1.64;1.63.0;1.63;1.62.0;1.62;1.61.0;1.61;1.60.0;1.60;1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1689 ] Boost_USE_MULTITHREADED = "TRUE"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1690 ] Boost_USE_STATIC_LIBS = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1691 ] Boost_USE_STATIC_RUNTIME = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1692 ] Boost_ADDITIONAL_VERSIONS = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1693 ] Boost_NO_SYSTEM_PATHS = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1725 ] BOOST_ROOT = "C:\Code\boost_1_78_0"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1726 ] ENV{BOOST_ROOT} = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1727 ] BOOST_INCLUDEDIR = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1728 ] ENV{BOOST_INCLUDEDIR} = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1729 ] BOOST_LIBRARYDIR = "C:\Code\boost_1_78_0\stage"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1730 ] ENV{BOOST_LIBRARYDIR} = <unset>
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1818 ] location of version.hpp: C:\Code\boost_1_78_0/boost/version.hpp
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1858 ] Boost_VERSION = "107800"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1859 ] Boost_VERSION_STRING = "1.78.0"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1860 ] Boost_VERSION_MACRO = "107800"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1861 ] Boost_VERSION_MAJOR = "1"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1862 ] Boost_VERSION_MINOR = "78"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1863 ] Boost_VERSION_PATCH = "0"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1864 ] Boost_VERSION_COUNT = "3"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1888 ] Boost_LIB_PREFIX = ""
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1889 ] Boost_NAMESPACE = "boost"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:953 ] _boost_COMPILER = "-vc143;-vc142;-vc141;-vc140" (guessed)
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:1925 ] _boost_MULTITHREADED = "-mt"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2003 ] _boost_ARCHITECTURE_TAG = "-x64" (detected)
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2007 ] _boost_RELEASE_ABI_TAG = "-"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2008 ] _boost_DEBUG_ABI_TAG = "-gd"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2068 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "C:\Code\boost_1_78_0\stage;C:\Code\boost_1_78_0/lib;C:\Code\boost_1_78_0/stage/lib;C:\Code\boost_1_78_0/lib64-msvc-14.3;C:\Code\boost_1_78_0/lib64-msvc-14.2;C:\Code\boost_1_78_0/lib64-msvc-14.1;C:\Code\boost_1_78_0/lib64-msvc-14.0;C:\Code\boost_1_78_0/lib;C:\Code\boost_1_78_0/../lib;C:\Code\boost_1_78_0/stage/lib;C:\Code\boost_1_78_0/../lib64-msvc-14.3;C:\Code\boost_1_78_0/../lib64-msvc-14.2;C:\Code\boost_1_78_0/../lib64-msvc-14.1;C:\Code\boost_1_78_0/../lib64-msvc-14.0;C:\Code\boost_1_78_0/lib64-msvc-14.3;C:\Code\boost_1_78_0/lib64-msvc-14.2;C:\Code\boost_1_78_0/lib64-msvc-14.1;C:\Code\boost_1_78_0/lib64-msvc-14.0;C:/local/boost_1_78_0/lib64-msvc-14.3;C:/local/boost_1_78_0/lib64-msvc-14.2;C:/local/boost_1_78_0/lib64-msvc-14.1;C:/local/boost_1_78_0/lib64-msvc-14.0;C:/local/boost_1_78/lib64-msvc-14.3;C:/local/boost_1_78/lib64-msvc-14.2;C:/local/boost_1_78/lib64-msvc-14.1;C:/local/boost_1_78/lib64-msvc-14.0;C:/local/boost_1_77_0/lib64-msvc-14.3;C:/local/boost_1_77_0/lib64-msvc-14.2;C:/local/boost_1_77_0/lib64-msvc-14.1;C:/local/boost_1_77_0/lib64-msvc-14.0;C:/local/boost_1_77/lib64-msvc-14.3;C:/local/boost_1_77/lib64-msvc-14.2;C:/local/boost_1_77/lib64-msvc-14.1;C:/local/boost_1_77/lib64-msvc-14.0;C:/local/boost_1_76_0/lib64-msvc-14.3;C:/local/boost_1_76_0/lib64-msvc-14.2;C:/local/boost_1_76_0/lib64-msvc-14.1;C:/local/boost_1_76_0/lib64-msvc-14.0;C:/local/boost_1_76/lib64-msvc-14.3;C:/local/boost_1_76/lib64-msvc-14.2;C:/local/boost_1_76/lib64-msvc-14.1;C:/local/boost_1_76/lib64-msvc-14.0;C:/local/boost_1_75_0/lib64-msvc-14.3;C:/local/boost_1_75_0/lib64-msvc-14.2;C:/local/boost_1_75_0/lib64-msvc-14.1;C:/local/boost_1_75_0/lib64-msvc-14.0;C:/local/boost_1_75/lib64-msvc-14.3;C:/local/boost_1_75/lib64-msvc-14.2;C:/local/boost_1_75/lib64-msvc-14.1;C:/local/boost_1_75/lib64-msvc-14.0;C:/local/boost_1_74_0/lib64-msvc-14.3;C:/local/boost_1_74_0/lib64-msvc-14.2;C:/local/boost_1_74_0/lib64-msvc-14.1;C:/local/boost_1_74_0/lib64-msvc-14.0;C:/local/boost_1_74/lib64-msvc-14.3;C:/local/boost_1_74/lib64-msvc-14.2;C:/local/boost_1_74/lib64-msvc-14.1;C:/local/boost_1_74/lib64-msvc-14.0;C:/local/boost_1_73_0/lib64-msvc-14.3;C:/local/boost_1_73_0/lib64-msvc-14.2;C:/local/boost_1_73_0/lib64-msvc-14.1;C:/local/boost_1_73_0/lib64-msvc-14.0;C:/local/boost_1_73/lib64-msvc-14.3;C:/local/boost_1_73/lib64-msvc-14.2;C:/local/boost_1_73/lib64-msvc-14.1;C:/local/boost_1_73/lib64-msvc-14.0;C:/local/boost_1_72_0/lib64-msvc-14.3;C:/local/boost_1_72_0/lib64-msvc-14.2;C:/local/boost_1_72_0/lib64-msvc-14.1;C:/local/boost_1_72_0/lib64-msvc-14.0;C:/local/boost_1_72/lib64-msvc-14.3;C:/local/boost_1_72/lib64-msvc-14.2;C:/local/boost_1_72/lib64-msvc-14.1;C:/local/boost_1_72/lib64-msvc-14.0;C:/local/boost_1_71_0/lib64-msvc-14.3;C:/local/boost_1_71_0/lib64-msvc-14.2;C:/local/boost_1_71_0/lib64-msvc-14.1;C:/local/boost_1_71_0/lib64-msvc-14.0;C:/local/boost_1_71/lib64-msvc-14.3;C:/local/boost_1_71/lib64-msvc-14.2;C:/local/boost_1_71/lib64-msvc-14.1;C:/local/boost_1_71/lib64-msvc-14.0;C:/local/boost_1_70_0/lib64-msvc-14.3;C:/local/boost_1_70_0/lib64-msvc-14.2;C:/local/boost_1_70_0/lib64-msvc-14.1;C:/local/boost_1_70_0/lib64-msvc-14.0;C:/local/boost_1_70/lib64-msvc-14.3;C:/local/boost_1_70/lib64-msvc-14.2;C:/local/boost_1_70/lib64-msvc-14.1;C:/local/boost_1_70/lib64-msvc-14.0;C:/local/boost_1_69_0/lib64-msvc-14.3;C:/local/boost_1_69_0/lib64-msvc-14.2;C:/local/boost_1_69_0/lib64-msvc-14.1;C:/local/boost_1_69_0/lib64-msvc-14.0;C:/local/boost_1_69/lib64-msvc-14.3;C:/local/boost_1_69/lib64-msvc-14.2;C:/local/boost_1_69/lib64-msvc-14.1;C:/local/boost_1_69/lib64-msvc-14.0;C:/local/boost_1_68_0/lib64-msvc-14.3;C:/local/boost_1_68_0/lib64-msvc-14.2;C:/local/boost_1_68_0/lib64-msvc-14.1;C:/local/boost_1_68_0/lib64-msvc-14.0;C:/local/boost_1_68/lib64-msvc-14.3;C:/local/boost_1_68/lib64-msvc-14.2;C:/local/boost_1_68/lib64-msvc-14.1;C:/local/boost_1_68/lib64-msvc-14.0;C:/local/boost_1_67_0/lib64-msvc-14.3;C:/local/boost_1_67_0/lib64-msvc-14.2;C:/local/boost_1_67_0/lib64-msvc-14.1;C:/local/boost_1_67_0/lib64-msvc-14.0;C:/local/boost_1_67/lib64-msvc-14.3;C:/local/boost_1_67/lib64-msvc-14.2;C:/local/boost_1_67/lib64-msvc-14.1;C:/local/boost_1_67/lib64-msvc-14.0;C:/local/boost_1_66_0/lib64-msvc-14.3;C:/local/boost_1_66_0/lib64-msvc-14.2;C:/local/boost_1_66_0/lib64-msvc-14.1;C:/local/boost_1_66_0/lib64-msvc-14.0;C:/local/boost_1_66/lib64-msvc-14.3;C:/local/boost_1_66/lib64-msvc-14.2;C:/local/boost_1_66/lib64-msvc-14.1;C:/local/boost_1_66/lib64-msvc-14.0;C:/local/boost_1_65_1/lib64-msvc-14.3;C:/local/boost_1_65_1/lib64-msvc-14.2;C:/local/boost_1_65_1/lib64-msvc-14.1;C:/local/boost_1_65_1/lib64-msvc-14.0;C:/local/boost_1_65_0/lib64-msvc-14.3;C:/local/boost_1_65_0/lib64-msvc-14.2;C:/local/boost_1_65_0/lib64-msvc-14.1;C:/local/boost_1_65_0/lib64-msvc-14.0;C:/local/boost_1_65/lib64-msvc-14.3;C:/local/boost_1_65/lib64-msvc-14.2;C:/local/boost_1_65/lib64-msvc-14.1;C:/local/boost_1_65/lib64-msvc-14.0;C:/local/boost_1_64_0/lib64-msvc-14.3;C:/local/boost_1_64_0/lib64-msvc-14.2;C:/local/boost_1_64_0/lib64-msvc-14.1;C:/local/boost_1_64_0/lib64-msvc-14.0;C:/local/boost_1_64/lib64-msvc-14.3;C:/local/boost_1_64/lib64-msvc-14.2;C:/local/boost_1_64/lib64-msvc-14.1;C:/local/boost_1_64/lib64-msvc-14.0;C:/local/boost_1_63_0/lib64-msvc-14.3;C:/local/boost_1_63_0/lib64-msvc-14.2;C:/local/boost_1_63_0/lib64-msvc-14.1;C:/local/boost_1_63_0/lib64-msvc-14.0;C:/local/boost_1_63/lib64-msvc-14.3;C:/local/boost_1_63/lib64-msvc-14.2;C:/local/boost_1_63/lib64-msvc-14.1;C:/local/boost_1_63/lib64-msvc-14.0;C:/local/boost_1_62_0/lib64-msvc-14.3;C:/local/boost_1_62_0/lib64-msvc-14.2;C:/local/boost_1_62_0/lib64-msvc-14.1;C:/local/boost_1_62_0/lib64-msvc-14.0;C:/local/boost_1_62/lib64-msvc-14.3;C:/local/boost_1_62/lib64-msvc-14.2;C:/local/boost_1_62/lib64-msvc-14.1;C:/local/boost_1_62/lib64-msvc-14.0;C:/local/boost_1_61_0/lib64-msvc-14.3;C:/local/boost_1_61_0/lib64-msvc-14.2;C:/local/boost_1_61_0/lib64-msvc-14.1;C:/local/boost_1_61_0/lib64-msvc-14.0;C:/local/boost_1_61/lib64-msvc-14.3;C:/local/boost_1_61/lib64-msvc-14.2;C:/local/boost_1_61/lib64-msvc-14.1;C:/local/boost_1_61/lib64-msvc-14.0;C:/local/boost_1_60_0/lib64-msvc-14.3;C:/local/boost_1_60_0/lib64-msvc-14.2;C:/local/boost_1_60_0/lib64-msvc-14.1;C:/local/boost_1_60_0/lib64-msvc-14.0;C:/local/boost_1_60/lib64-msvc-14.3;C:/local/boost_1_60/lib64-msvc-14.2;C:/local/boost_1_60/lib64-msvc-14.1;C:/local/boost_1_60/lib64-msvc-14.0;C:/local/boost_1_59_0/lib64-msvc-14.3;C:/local/boost_1_59_0/lib64-msvc-14.2;C:/local/boost_1_59_0/lib64-msvc-14.1;C:/local/boost_1_59_0/lib64-msvc-14.0;C:/local/boost_1_59/lib64-msvc-14.3;C:/local/boost_1_59/lib64-msvc-14.2;C:/local/boost_1_59/lib64-msvc-14.1;C:/local/boost_1_59/lib64-msvc-14.0;C:/local/boost_1_58_0/lib64-msvc-14.3;C:/local/boost_1_58_0/lib64-msvc-14.2;C:/local/boost_1_58_0/lib64-msvc-14.1;C:/local/boost_1_58_0/lib64-msvc-14.0;C:/local/boost_1_58/lib64-msvc-14.3;C:/local/boost_1_58/lib64-msvc-14.2;C:/local/boost_1_58/lib64-msvc-14.1;C:/local/boost_1_58/lib64-msvc-14.0;C:/local/boost_1_57_0/lib64-msvc-14.3;C:/local/boost_1_57_0/lib64-msvc-14.2;C:/local/boost_1_57_0/lib64-msvc-14.1;C:/local/boost_1_57_0/lib64-msvc-14.0;C:/local/boost_1_57/lib64-msvc-14.3;C:/local/boost_1_57/lib64-msvc-14.2;C:/local/boost_1_57/lib64-msvc-14.1;C:/local/boost_1_57/lib64-msvc-14.0;C:/local/boost_1_56_0/lib64-msvc-14.3;C:/local/boost_1_56_0/lib64-msvc-14.2;C:/local/boost_1_56_0/lib64-msvc-14.1;C:/local/boost_1_56_0/lib64-msvc-14.0;C:/local/boost_1_56/lib64-msvc-14.3;C:/local/boost_1_56/lib64-msvc-14.2;C:/local/boost_1_56/lib64-msvc-14.1;C:/local/boost_1_56/lib64-msvc-14.0;C:/local/boost_1_55_0/lib64-msvc-14.3;C:/local/boost_1_55_0/lib64-msvc-14.2;C:/local/boost_1_55_0/lib64-msvc-14.1;C:/local/boost_1_55_0/lib64-msvc-14.0;C:/local/boost_1_55/lib64-msvc-14.3;C:/local/boost_1_55/lib64-msvc-14.2;C:/local/boost_1_55/lib64-msvc-14.1;C:/local/boost_1_55/lib64-msvc-14.0;C:/boost/lib64-msvc-14.3;C:/boost/lib64-msvc-14.2;C:/boost/lib64-msvc-14.1;C:/boost/lib64-msvc-14.0;PATHS;C:/boost/lib;C:/boost;/sw/local/lib"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2069 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "C:\Code\boost_1_78_0\stage;C:\Code\boost_1_78_0/lib;C:\Code\boost_1_78_0/stage/lib;C:\Code\boost_1_78_0/lib64-msvc-14.3;C:\Code\boost_1_78_0/lib64-msvc-14.2;C:\Code\boost_1_78_0/lib64-msvc-14.1;C:\Code\boost_1_78_0/lib64-msvc-14.0;C:\Code\boost_1_78_0/lib;C:\Code\boost_1_78_0/../lib;C:\Code\boost_1_78_0/stage/lib;C:\Code\boost_1_78_0/../lib64-msvc-14.3;C:\Code\boost_1_78_0/../lib64-msvc-14.2;C:\Code\boost_1_78_0/../lib64-msvc-14.1;C:\Code\boost_1_78_0/../lib64-msvc-14.0;C:\Code\boost_1_78_0/lib64-msvc-14.3;C:\Code\boost_1_78_0/lib64-msvc-14.2;C:\Code\boost_1_78_0/lib64-msvc-14.1;C:\Code\boost_1_78_0/lib64-msvc-14.0;C:/local/boost_1_78_0/lib64-msvc-14.3;C:/local/boost_1_78_0/lib64-msvc-14.2;C:/local/boost_1_78_0/lib64-msvc-14.1;C:/local/boost_1_78_0/lib64-msvc-14.0;C:/local/boost_1_78/lib64-msvc-14.3;C:/local/boost_1_78/lib64-msvc-14.2;C:/local/boost_1_78/lib64-msvc-14.1;C:/local/boost_1_78/lib64-msvc-14.0;C:/local/boost_1_77_0/lib64-msvc-14.3;C:/local/boost_1_77_0/lib64-msvc-14.2;C:/local/boost_1_77_0/lib64-msvc-14.1;C:/local/boost_1_77_0/lib64-msvc-14.0;C:/local/boost_1_77/lib64-msvc-14.3;C:/local/boost_1_77/lib64-msvc-14.2;C:/local/boost_1_77/lib64-msvc-14.1;C:/local/boost_1_77/lib64-msvc-14.0;C:/local/boost_1_76_0/lib64-msvc-14.3;C:/local/boost_1_76_0/lib64-msvc-14.2;C:/local/boost_1_76_0/lib64-msvc-14.1;C:/local/boost_1_76_0/lib64-msvc-14.0;C:/local/boost_1_76/lib64-msvc-14.3;C:/local/boost_1_76/lib64-msvc-14.2;C:/local/boost_1_76/lib64-msvc-14.1;C:/local/boost_1_76/lib64-msvc-14.0;C:/local/boost_1_75_0/lib64-msvc-14.3;C:/local/boost_1_75_0/lib64-msvc-14.2;C:/local/boost_1_75_0/lib64-msvc-14.1;C:/local/boost_1_75_0/lib64-msvc-14.0;C:/local/boost_1_75/lib64-msvc-14.3;C:/local/boost_1_75/lib64-msvc-14.2;C:/local/boost_1_75/lib64-msvc-14.1;C:/local/boost_1_75/lib64-msvc-14.0;C:/local/boost_1_74_0/lib64-msvc-14.3;C:/local/boost_1_74_0/lib64-msvc-14.2;C:/local/boost_1_74_0/lib64-msvc-14.1;C:/local/boost_1_74_0/lib64-msvc-14.0;C:/local/boost_1_74/lib64-msvc-14.3;C:/local/boost_1_74/lib64-msvc-14.2;C:/local/boost_1_74/lib64-msvc-14.1;C:/local/boost_1_74/lib64-msvc-14.0;C:/local/boost_1_73_0/lib64-msvc-14.3;C:/local/boost_1_73_0/lib64-msvc-14.2;C:/local/boost_1_73_0/lib64-msvc-14.1;C:/local/boost_1_73_0/lib64-msvc-14.0;C:/local/boost_1_73/lib64-msvc-14.3;C:/local/boost_1_73/lib64-msvc-14.2;C:/local/boost_1_73/lib64-msvc-14.1;C:/local/boost_1_73/lib64-msvc-14.0;C:/local/boost_1_72_0/lib64-msvc-14.3;C:/local/boost_1_72_0/lib64-msvc-14.2;C:/local/boost_1_72_0/lib64-msvc-14.1;C:/local/boost_1_72_0/lib64-msvc-14.0;C:/local/boost_1_72/lib64-msvc-14.3;C:/local/boost_1_72/lib64-msvc-14.2;C:/local/boost_1_72/lib64-msvc-14.1;C:/local/boost_1_72/lib64-msvc-14.0;C:/local/boost_1_71_0/lib64-msvc-14.3;C:/local/boost_1_71_0/lib64-msvc-14.2;C:/local/boost_1_71_0/lib64-msvc-14.1;C:/local/boost_1_71_0/lib64-msvc-14.0;C:/local/boost_1_71/lib64-msvc-14.3;C:/local/boost_1_71/lib64-msvc-14.2;C:/local/boost_1_71/lib64-msvc-14.1;C:/local/boost_1_71/lib64-msvc-14.0;C:/local/boost_1_70_0/lib64-msvc-14.3;C:/local/boost_1_70_0/lib64-msvc-14.2;C:/local/boost_1_70_0/lib64-msvc-14.1;C:/local/boost_1_70_0/lib64-msvc-14.0;C:/local/boost_1_70/lib64-msvc-14.3;C:/local/boost_1_70/lib64-msvc-14.2;C:/local/boost_1_70/lib64-msvc-14.1;C:/local/boost_1_70/lib64-msvc-14.0;C:/local/boost_1_69_0/lib64-msvc-14.3;C:/local/boost_1_69_0/lib64-msvc-14.2;C:/local/boost_1_69_0/lib64-msvc-14.1;C:/local/boost_1_69_0/lib64-msvc-14.0;C:/local/boost_1_69/lib64-msvc-14.3;C:/local/boost_1_69/lib64-msvc-14.2;C:/local/boost_1_69/lib64-msvc-14.1;C:/local/boost_1_69/lib64-msvc-14.0;C:/local/boost_1_68_0/lib64-msvc-14.3;C:/local/boost_1_68_0/lib64-msvc-14.2;C:/local/boost_1_68_0/lib64-msvc-14.1;C:/local/boost_1_68_0/lib64-msvc-14.0;C:/local/boost_1_68/lib64-msvc-14.3;C:/local/boost_1_68/lib64-msvc-14.2;C:/local/boost_1_68/lib64-msvc-14.1;C:/local/boost_1_68/lib64-msvc-14.0;C:/local/boost_1_67_0/lib64-msvc-14.3;C:/local/boost_1_67_0/lib64-msvc-14.2;C:/local/boost_1_67_0/lib64-msvc-14.1;C:/local/boost_1_67_0/lib64-msvc-14.0;C:/local/boost_1_67/lib64-msvc-14.3;C:/local/boost_1_67/lib64-msvc-14.2;C:/local/boost_1_67/lib64-msvc-14.1;C:/local/boost_1_67/lib64-msvc-14.0;C:/local/boost_1_66_0/lib64-msvc-14.3;C:/local/boost_1_66_0/lib64-msvc-14.2;C:/local/boost_1_66_0/lib64-msvc-14.1;C:/local/boost_1_66_0/lib64-msvc-14.0;C:/local/boost_1_66/lib64-msvc-14.3;C:/local/boost_1_66/lib64-msvc-14.2;C:/local/boost_1_66/lib64-msvc-14.1;C:/local/boost_1_66/lib64-msvc-14.0;C:/local/boost_1_65_1/lib64-msvc-14.3;C:/local/boost_1_65_1/lib64-msvc-14.2;C:/local/boost_1_65_1/lib64-msvc-14.1;C:/local/boost_1_65_1/lib64-msvc-14.0;C:/local/boost_1_65_0/lib64-msvc-14.3;C:/local/boost_1_65_0/lib64-msvc-14.2;C:/local/boost_1_65_0/lib64-msvc-14.1;C:/local/boost_1_65_0/lib64-msvc-14.0;C:/local/boost_1_65/lib64-msvc-14.3;C:/local/boost_1_65/lib64-msvc-14.2;C:/local/boost_1_65/lib64-msvc-14.1;C:/local/boost_1_65/lib64-msvc-14.0;C:/local/boost_1_64_0/lib64-msvc-14.3;C:/local/boost_1_64_0/lib64-msvc-14.2;C:/local/boost_1_64_0/lib64-msvc-14.1;C:/local/boost_1_64_0/lib64-msvc-14.0;C:/local/boost_1_64/lib64-msvc-14.3;C:/local/boost_1_64/lib64-msvc-14.2;C:/local/boost_1_64/lib64-msvc-14.1;C:/local/boost_1_64/lib64-msvc-14.0;C:/local/boost_1_63_0/lib64-msvc-14.3;C:/local/boost_1_63_0/lib64-msvc-14.2;C:/local/boost_1_63_0/lib64-msvc-14.1;C:/local/boost_1_63_0/lib64-msvc-14.0;C:/local/boost_1_63/lib64-msvc-14.3;C:/local/boost_1_63/lib64-msvc-14.2;C:/local/boost_1_63/lib64-msvc-14.1;C:/local/boost_1_63/lib64-msvc-14.0;C:/local/boost_1_62_0/lib64-msvc-14.3;C:/local/boost_1_62_0/lib64-msvc-14.2;C:/local/boost_1_62_0/lib64-msvc-14.1;C:/local/boost_1_62_0/lib64-msvc-14.0;C:/local/boost_1_62/lib64-msvc-14.3;C:/local/boost_1_62/lib64-msvc-14.2;C:/local/boost_1_62/lib64-msvc-14.1;C:/local/boost_1_62/lib64-msvc-14.0;C:/local/boost_1_61_0/lib64-msvc-14.3;C:/local/boost_1_61_0/lib64-msvc-14.2;C:/local/boost_1_61_0/lib64-msvc-14.1;C:/local/boost_1_61_0/lib64-msvc-14.0;C:/local/boost_1_61/lib64-msvc-14.3;C:/local/boost_1_61/lib64-msvc-14.2;C:/local/boost_1_61/lib64-msvc-14.1;C:/local/boost_1_61/lib64-msvc-14.0;C:/local/boost_1_60_0/lib64-msvc-14.3;C:/local/boost_1_60_0/lib64-msvc-14.2;C:/local/boost_1_60_0/lib64-msvc-14.1;C:/local/boost_1_60_0/lib64-msvc-14.0;C:/local/boost_1_60/lib64-msvc-14.3;C:/local/boost_1_60/lib64-msvc-14.2;C:/local/boost_1_60/lib64-msvc-14.1;C:/local/boost_1_60/lib64-msvc-14.0;C:/local/boost_1_59_0/lib64-msvc-14.3;C:/local/boost_1_59_0/lib64-msvc-14.2;C:/local/boost_1_59_0/lib64-msvc-14.1;C:/local/boost_1_59_0/lib64-msvc-14.0;C:/local/boost_1_59/lib64-msvc-14.3;C:/local/boost_1_59/lib64-msvc-14.2;C:/local/boost_1_59/lib64-msvc-14.1;C:/local/boost_1_59/lib64-msvc-14.0;C:/local/boost_1_58_0/lib64-msvc-14.3;C:/local/boost_1_58_0/lib64-msvc-14.2;C:/local/boost_1_58_0/lib64-msvc-14.1;C:/local/boost_1_58_0/lib64-msvc-14.0;C:/local/boost_1_58/lib64-msvc-14.3;C:/local/boost_1_58/lib64-msvc-14.2;C:/local/boost_1_58/lib64-msvc-14.1;C:/local/boost_1_58/lib64-msvc-14.0;C:/local/boost_1_57_0/lib64-msvc-14.3;C:/local/boost_1_57_0/lib64-msvc-14.2;C:/local/boost_1_57_0/lib64-msvc-14.1;C:/local/boost_1_57_0/lib64-msvc-14.0;C:/local/boost_1_57/lib64-msvc-14.3;C:/local/boost_1_57/lib64-msvc-14.2;C:/local/boost_1_57/lib64-msvc-14.1;C:/local/boost_1_57/lib64-msvc-14.0;C:/local/boost_1_56_0/lib64-msvc-14.3;C:/local/boost_1_56_0/lib64-msvc-14.2;C:/local/boost_1_56_0/lib64-msvc-14.1;C:/local/boost_1_56_0/lib64-msvc-14.0;C:/local/boost_1_56/lib64-msvc-14.3;C:/local/boost_1_56/lib64-msvc-14.2;C:/local/boost_1_56/lib64-msvc-14.1;C:/local/boost_1_56/lib64-msvc-14.0;C:/local/boost_1_55_0/lib64-msvc-14.3;C:/local/boost_1_55_0/lib64-msvc-14.2;C:/local/boost_1_55_0/lib64-msvc-14.1;C:/local/boost_1_55_0/lib64-msvc-14.0;C:/local/boost_1_55/lib64-msvc-14.3;C:/local/boost_1_55/lib64-msvc-14.2;C:/local/boost_1_55/lib64-msvc-14.1;C:/local/boost_1_55/lib64-msvc-14.0;C:/boost/lib64-msvc-14.3;C:/boost/lib64-msvc-14.2;C:/boost/lib64-msvc-14.1;C:/boost/lib64-msvc-14.0;PATHS;C:/boost/lib;C:/boost;/sw/local/lib"
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2254 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-vc143-mt-x64-1_78;boost_filesystem-vc143-mt-x64;boost_filesystem-vc143-mt;boost_filesystem-vc142-mt-x64-1_78;boost_filesystem-vc142-mt-x64;boost_filesystem-vc142-mt;boost_filesystem-vc141-mt-x64-1_78;boost_filesystem-vc141-mt-x64;boost_filesystem-vc141-mt;boost_filesystem-vc140-mt-x64-1_78;boost_filesystem-vc140-mt-x64;boost_filesystem-vc140-mt;boost_filesystem-mt-x64-1_78;boost_filesystem-mt-x64;boost_filesystem-mt;boost_filesystem-mt;boost_filesystem
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2309 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-vc143-mt-gd-x64-1_78;boost_filesystem-vc143-mt-gd-x64;boost_filesystem-vc143-mt-gd;boost_filesystem-vc142-mt-gd-x64-1_78;boost_filesystem-vc142-mt-gd-x64;boost_filesystem-vc142-mt-gd;boost_filesystem-vc141-mt-gd-x64-1_78;boost_filesystem-vc141-mt-gd-x64;boost_filesystem-vc141-mt-gd;boost_filesystem-vc140-mt-gd-x64-1_78;boost_filesystem-vc140-mt-gd-x64;boost_filesystem-vc140-mt-gd;boost_filesystem-mt-gd-x64-1_78;boost_filesystem-mt-gd-x64;boost_filesystem-mt-gd;boost_filesystem-mt;boost_filesystem
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2254 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-vc143-mt-x64-1_78;boost_program_options-vc143-mt-x64;boost_program_options-vc143-mt;boost_program_options-vc142-mt-x64-1_78;boost_program_options-vc142-mt-x64;boost_program_options-vc142-mt;boost_program_options-vc141-mt-x64-1_78;boost_program_options-vc141-mt-x64;boost_program_options-vc141-mt;boost_program_options-vc140-mt-x64-1_78;boost_program_options-vc140-mt-x64;boost_program_options-vc140-mt;boost_program_options-mt-x64-1_78;boost_program_options-mt-x64;boost_program_options-mt;boost_program_options-mt;boost_program_options
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2309 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-vc143-mt-gd-x64-1_78;boost_program_options-vc143-mt-gd-x64;boost_program_options-vc143-mt-gd;boost_program_options-vc142-mt-gd-x64-1_78;boost_program_options-vc142-mt-gd-x64;boost_program_options-vc142-mt-gd;boost_program_options-vc141-mt-gd-x64-1_78;boost_program_options-vc141-mt-gd-x64;boost_program_options-vc141-mt-gd;boost_program_options-vc140-mt-gd-x64-1_78;boost_program_options-vc140-mt-gd-x64;boost_program_options-vc140-mt-gd;boost_program_options-mt-gd-x64-1_78;boost_program_options-mt-gd-x64;boost_program_options-mt-gd;boost_program_options-mt;boost_program_options
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2254 ] Searching for IOSTREAMS_LIBRARY_RELEASE: boost_iostreams-vc143-mt-x64-1_78;boost_iostreams-vc143-mt-x64;boost_iostreams-vc143-mt;boost_iostreams-vc142-mt-x64-1_78;boost_iostreams-vc142-mt-x64;boost_iostreams-vc142-mt;boost_iostreams-vc141-mt-x64-1_78;boost_iostreams-vc141-mt-x64;boost_iostreams-vc141-mt;boost_iostreams-vc140-mt-x64-1_78;boost_iostreams-vc140-mt-x64;boost_iostreams-vc140-mt;boost_iostreams-mt-x64-1_78;boost_iostreams-mt-x64;boost_iostreams-mt;boost_iostreams-mt;boost_iostreams
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2309 ] Searching for IOSTREAMS_LIBRARY_DEBUG: boost_iostreams-vc143-mt-gd-x64-1_78;boost_iostreams-vc143-mt-gd-x64;boost_iostreams-vc143-mt-gd;boost_iostreams-vc142-mt-gd-x64-1_78;boost_iostreams-vc142-mt-gd-x64;boost_iostreams-vc142-mt-gd;boost_iostreams-vc141-mt-gd-x64-1_78;boost_iostreams-vc141-mt-gd-x64;boost_iostreams-vc141-mt-gd;boost_iostreams-vc140-mt-gd-x64-1_78;boost_iostreams-vc140-mt-gd-x64;boost_iostreams-vc140-mt-gd;boost_iostreams-mt-gd-x64-1_78;boost_iostreams-mt-gd-x64;boost_iostreams-mt-gd;boost_iostreams-mt;boost_iostreams
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2254 ] Searching for REGEX_LIBRARY_RELEASE: boost_regex-vc143-mt-x64-1_78;boost_regex-vc143-mt-x64;boost_regex-vc143-mt;boost_regex-vc142-mt-x64-1_78;boost_regex-vc142-mt-x64;boost_regex-vc142-mt;boost_regex-vc141-mt-x64-1_78;boost_regex-vc141-mt-x64;boost_regex-vc141-mt;boost_regex-vc140-mt-x64-1_78;boost_regex-vc140-mt-x64;boost_regex-vc140-mt;boost_regex-mt-x64-1_78;boost_regex-mt-x64;boost_regex-mt;boost_regex-mt;boost_regex
[ C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2309 ] Searching for REGEX_LIBRARY_DEBUG: boost_regex-vc143-mt-gd-x64-1_78;boost_regex-vc143-mt-gd-x64;boost_regex-vc143-mt-gd;boost_regex-vc142-mt-gd-x64-1_78;boost_regex-vc142-mt-gd-x64;boost_regex-vc142-mt-gd;boost_regex-vc141-mt-gd-x64-1_78;boost_regex-vc141-mt-gd-x64;boost_regex-vc141-mt-gd;boost_regex-vc140-mt-gd-x64-1_78;boost_regex-vc140-mt-gd-x64;boost_regex-vc140-mt-gd;boost_regex-mt-gd-x64-1_78;boost_regex-mt-gd-x64;boost_regex-mt-gd;boost_regex-mt;boost_regex
CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost (missing: filesystem program_options iostreams) (found
  suitable version "1.78.0", minimum required is "1.55")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindBoost.cmake:2375 (find_package_handle_standard_args)
  CMakeLists.txt:26 (find_package)

我特别注意到 _boost_LIBRARY_SEARCH_DIRS_RELEASE 中的路径之一是 C:\Code\boost_1_78_0/stage/lib,这就是库所在的位置。此外,在 Searching for FILESYSTEM_LIBRARY_RELEASE 中,给出的名字是 boost_filesystem-vc143-mt-x64-1_78,并且该目录确实包含一个名为 libboost_filesystem-vc143-mt-x64-1_78.lib.

的文件

我通过设置 cmake 标志 Boost_USE_STATIC_LIBS 克服了 Boost 错误。现在我收到有关 GTest 的错误,但我想那将是一个不同的问题。