FindTBB ------- Finds the Threading Building Blocks (TBB) library. This is a fallback implementation in case the TBB library does not provide itself a corresponding TBBConfig.cmake file. Imported Targets ^^^^^^^^^^^^^^^^ This module provides the following imported targets, if found: ``TBB::tbb`` Imported target to link against when TBB is found. Result Variables ^^^^^^^^^^^^^^^^ This module defines the following variables: ``TBB_FOUND`` Boolean result indicating whether TBB was found. ``TBB_VERSION`` Version reported by the detected TBB package or pkg-config metadata, if available. Hints ^^^^^ Two strategies are implemented for finding TBB: 1. Searching for the TBB cmake config file, typically named ``TBBConfig.cmake``. In recent TBB versions, this file can be created using a script provided by TBB itself. Simply set the variable ``TBB_DIR`` to the directory containing the config file in order to find TBB. 2. Using pkg-config to configure TBB. Therefore it is necessary to find the ``tbb.pc`` file. Several distributions provide this file directly. In order to point pkg-config to the location of that file, simply set the environment variable ``PKG_CONFIG_PATH`` to include the directory containing the .pc file, or add this path to the ``CMAKE_PREFIX_PATH``.