Skip to content
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

Remove searching for TBB in embree-config.cmake #407

Closed

Conversation

stephanlachnit
Copy link

@stephanlachnit stephanlachnit commented Oct 23, 2022

Having FIND_PACKAGE(TBB) in embree-config.cmake adds an unnecessary constraint - namely that users now needs TBB development files on their system to use Embree. In environments with shared libraries like e.g. classic linux distributions, a user might have the TBB shared libraries for Embree installed but not the developments files. Any component checks should only happen during build time of Embree.

Closes #401

/cc @sherholz-intel @svenwoop

Having `FIND_PACKAGE(TBB)` in `embree-config.cmake` adds an unnecessary constraint - namely that users now needs TBB development files on their system to use Embree. In environments with shared libraries like e.g. classic linux distributions, a user might have the shared libraries for TBB installed but not the developments files.
@Neumann-A
Copy link

This breaks if the embree targets depend on tbb targets which will happen if embree is build statically with tbb.
(also the config should use find_dependency instead of find_package())

@freibold
Copy link
Contributor

freibold commented Feb 13, 2023

We have moved the find_package inside a IF(EMBREE_STATIC) conditional and replaced it with find_dependency. d411a39 Please let us know if the problem still persists. Thanks for the PR!

@freibold freibold closed this Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embree 3.14.4 forces user to have TBB CMake files installed
3 participants