Skip to content

Update the FindTBB cmake module

Simon Praetorius requested to merge feature/cleanup_find_tbb into master

Summary

Update the FindTBB cmake module to search for the TBBConfig.cmake or the tbb.pc file containing the configuration

Details

This update replaces a complicated search procedure by simply searching for the configuration files providing all necessary information to linking against TBB. In older TBB installations, a pkg-config file tbb.pc is provided. More recent TBB version, since version 2017, provide a TBBConfig.cmake file. If not provided in an installation, it can be generated using script provided by TBB.

In the debian:10 (buster) linux distribution, the provided pkg-config file tbb.pc works, but is very limited. A backport of a more recent FindPkgConfig cmake module was necessary to parse that file correctly.

See Also

Discussion in https://gitlab.dune-project.org/simon.praetorius/dune-cmake/-/merge_requests/18

Closes #204 (closed), #243 (closed), #205 (closed), #231 (closed)

Edited by Simon Praetorius

Merge request reports