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::tbbImported target to link against when TBB is found.
Result Variables¶
This module defines the following variables:
TBB_FOUNDBoolean result indicating whether TBB was found.
TBB_VERSIONVersion reported by the detected TBB package or pkg-config metadata, if available.
Hints¶
Two strategies are implemented for finding TBB:
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 variableTBB_DIRto the directory containing the config file in order to find TBB.Using pkg-config to configure TBB. Therefore it is necessary to find the
tbb.pcfile. Several distributions provide this file directly. In order to point pkg-config to the location of that file, simply set the environment variablePKG_CONFIG_PATHto include the directory containing the .pc file, or add this path to theCMAKE_PREFIX_PATH.