/opt/intel/oneapi/tbb/latest/env/vars.sh
doesn't setup CMake variables in a way that will lead to TBB being successfully detected.
In the latest OneAPI Debian packages (as of today 2020-12-21), the TBB shared libraries are located in /opt/intel/oneapi/tbb/2021.1.1/lib/intel64/gcc4.8/
*.
/opt/intel/oneapi/tbb/latest/env/vars.sh
sets CMAKE_PREFIX_PATH
to ${TBBROOT}
, aka /opt/intel/oneapi/tbb/2021.1.1
. That's not helpful - here's how CMake's find_library
uses CMAKE_PREFIX_PATH
:
[...]
2. Search paths specified in cmake-specific environment variables. These are intended to be set in the user’s shell configuration, and therefore use the host’s native path separator (;
on Windows and :
on UNIX). This can be skipped if NO_CMAKE_ENVIRONMENT_PATH
is passed or by setting the CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PAT
to FALSE
.
<prefix>/lib/<arch>
if CMAKE_LIBRARY_ARCHITECTURE
is set, and <prefix>/lib
for each <prefix>
in