You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cmake files were rewritten for this library and they use the "modern" approach. This means that they use find_package CONFIG mode to find libraries and then use target_link_libraries to bring everything in.
Ubuntu 18.04 does not install the TBB cmake file (TBBConfig.cmake) needed to make this work properly.
To reiterate what I mention in #33, we are using CONFIG mode, not MODULE mode. (I updated original post.)
So we want TBBConfig.cmake, not FindTBB.cmake. It looks like Ubuntu 18.04 has neither file, 19.10 has both, and 20 only has the config file. So maybe to find the correct file on 19 we need to force CONFIG mode (see #33).
Activity
asmaloney commentedon Apr 16, 2020
I'm trying to avoid special cases, but maybe fallback on failure to the FindTBB we were using before? At least until Ubuntu 18 goes away.
EpicWink commentedon Apr 28, 2020
To use
FindTBB.cmake, I had to setCMAKE_MODULES_PATH=/usr/share/cmake/Modules(orCMAKE_MODULE_PATH, one of the two)On Ubuntu 19.10, with
libtbb-devinstalledSide-note: I get linking errors when I try to build with TBB, but that's #33
asmaloney commentedon Apr 28, 2020
To reiterate what I mention in #33, we are using CONFIG mode, not MODULE mode. (I updated original post.)
So we want TBBConfig.cmake, not FindTBB.cmake. It looks like Ubuntu 18.04 has neither file, 19.10 has both, and 20 only has the config file. So maybe to find the correct file on 19 we need to force CONFIG mode (see #33).
{cmake} Fixes TBB linking on Ubuntu 19.x
{cmake} Fixes TBB linking on Ubuntu 19.x (#34)