Closed stephanlachnit closed 1 year ago
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()
)
We have moved the find_package inside a IF(EMBREE_STATIC) conditional and replaced it with find_dependency. https://github.com/embree/embree/commit/d411a39530da93fe68a5a41b84f335cacefb693f Please let us know if the problem still persists. Thanks for the PR!
Having
FIND_PACKAGE(TBB)
inembree-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 https://github.com/embree/embree/issues/401
/cc @sherholz-intel @svenwoop