How to fix CMake Could not find a package configuration file provided by "TBB" on Ubuntu

Problem

While compiling a C/C++ project using CMake you see the following error message

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.

Solution

Install libtbb-dev by using

sudo apt -y install libtbb-dev