Wie man behebt: CMake Could not find a package configuration file provided by "TBB" auf Ubuntu

Problem

Beim Kompilieren eines C/C++-Projekts mit CMake sehen Sie die folgende Fehlermeldung

cmake_tbb_error_output.txt
CMake Error at CMakeLists.txt:25 (find_package):
  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" 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.

Lösung

Installieren Sie libtbb-dev mit

install_libtbb.sh
sudo apt -y install libtbb-dev

Check out similar posts by category: CMake, C/C++