-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Modernize TBB CMake setup by exclusively relying on CMake namespace targets #3207
base: dev
Are you sure you want to change the base?
Modernize TBB CMake setup by exclusively relying on CMake namespace targets #3207
Conversation
…argets Using CMake namespace target is the modern approach, it forward definitions, include directories and link libraries transitively to consumers. And one is already setup by the `FindTBB.cmake` module. As the main CMakeLists.txt already requires CMake 3.14 this should already be available to all CMake clients. Additionally try to resolve TBB Config package before trying the module one.
Filed as internal issue #USD-9934 |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
6048214
to
d17762c
Compare
d17762c
to
a1075a6
Compare
Hey @jesschimein I have reproduced yesterday issues locally when building without using oneTBB and I have pushed a new fix to accommodate those. |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi @jesschimein , I am not sure to understand whether the last azure pipeline run for windows is a genuine error or not. |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Yeah, some of the timeouts are a little fickle, and we usually rerun to check. Looks like Windows successfully built this time! 🙌🏻 |
Hi @jesschimein there is now a large list of conflicts, if I resolve them is there a good chance to integrate my change for the next release ? |
Description of Change(s)
Using CMake namespace target is the modern approach, it forwards definitions, include directories and link libraries transitively to consumers.
One
TBB::tbb
is already produced by theFindTBB.cmake
module.As the main CMakeLists.txt already requires CMake 3.14 this should already be available to all CMake clients.
Additionally try to resolve TBB Config package before trying the module one.
Miscellaneous associated cleanups are made with remaining commits.