-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CMake] TBBConfig.cmake can't find the libraries #135
Comments
Hi @ldionne, Which For your case the TBBInstallConfig module (developed in scope of PRs #119, #126, #127) may be suitable, you can generate a proper TBBConfig.cmake for your TBB installation. |
I am talking about the |
@ldionne I created a PR to fix |
Thanks! |
The TBB formula was updated in Homebrew. Now everything works well on my machine. @ldionne, could you please check it on your side and close the issue if everything is ok? @hjmjohnson, this might be interesting for you too. |
Thanks, I confirmed it works as expected locally. |
Hi,
TBBConfig.cmake
currently says:However, this file is normally installed in:
As a result,
${CMAKE_CURRENT_LIST_FILE}
is<prefix>/lib/cmake/TBB/TBBConfig.cmake
, and_tbb_root
is<prefix>/lib/cmake
. We then try to look for the libraries in${_tbb_root}/lib/<arch>/<compiler>
, which is<prefix>/lib/cmake/lib/<arch>/<compiler>
. This is incorrect, as we should be looking into<prefix>/lib/<arch>/<compiler>
. The problem is that_tbb_root
currently points to the root of the CMake config files installation, as opposed to the prefix where TBB was installed. Instead, we should use:The text was updated successfully, but these errors were encountered: