一、错误
By not providing "FindTBB.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "TBB", but
CMake did not find one.
Could not find a package configuration file provided by "TBB" (requested
version 2020.1) with any of the following names:
TBBConfig.cmake
tbb-config.cmake
Add the installation prefix of "TBB" to CMAKE_PREFIX_PATH or set "TBB_DIR"
to a directory containing one of the above files. If "TBB" provides a
separate development package or SDK, be sure it has been installed.
二、下载findtbb.cmake
TBB
默认情况下不随 FindTBB.cmake
模块一起提供,因此错误消息中的指南有点误导。
如果您的项目提供了相应的FindTBB.cmake
模块,您需要将其路径和TBB
安装路径添加到您的CMake
调用,即
cmake . -G "<your generator here>" -DTBB_DIR=<path to TBB installation> -DCMAKE_PREFIX_PATH=<path to FindTBB.cmake>
否则您需要下载合适的 FindTBB.cmake
模块,例如https://github.com/schuhschuh/cmake-basis-modules/blob/develop/FindTBB.cmake
三、把findtbb.cmake放入IC-GVINS中cmake文件夹中