wjakob / tbb

Intel TBB with CMake build system
Apache License 2.0
369 stars 161 forks source link

TBB_IMPORTED_TARGETS is empty #75

Open themightyoarfish opened 4 years ago

themightyoarfish commented 4 years ago

https://github.com/wjakob/tbb/blob/141b0e310e1fb552bdca887542c9c1a8544d6503/cmake/templates/TBBConfig.cmake.in#L17

The CMake config alleges that this variable should include everything needed to target_link_libraries() to TBB. But it's empty.

I'm trying to find_package(TBB REQUIRED). It works if I link to TBB::tbb directly. Passing COMPONENTS tbb to the call does not change the behaviour. TBB is installed via this repo to /usr/local. Is it a bug in the CMake config?