The link interface of target "TBB::tbb" contains: Threads::Threads but the target was not found.
envgap__uxlfoundation__oneTBB-1145
01 / FAILURE SIGNATURE
As reported upstream
The link interface of target "TBB::tbb" contains:
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
c62b6468508316a1de976921f4c2a596fc1dcd31- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
uxlfoundation/oneTBB #1145 · read the original issue
**build from:** https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.9.0.tar.gz
**usage:**
```cmake
find_package(TBB REQUIRED)
target_link_libraries(mold PRIVATE TBB::tbb)
```
**reported messages:**
```cmake
CMake Error at /home/leleliu008/.ndk-pkg/installed/android-21/arm64-v8a/tbb/lib/cmake/TBB/TBBTargets.cmake:61 (set_target_properties):
The link interface of target "TBB::tbb" contains:
Threads::Threads
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/home/leleliu008/.ndk-pkg/installed/android-21/arm64-v8a/tbb/lib/cmake/TBB/TBBConfig.cmake:1 (include)
CMakeLists.txt:184 (find_package)
```
**reason:** It seems that `find_package(Threads REQUIRED)` is missing in `TBBTargets.cmake`04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]