Closed hernando closed 5 years ago
We are about to do a v1.8.3 release, so I can get a fix in for this ASAP (both ospray_tasking
and embree
targets). Thanks for reporting this, and sorry for the inconvenience!
You can use this commit as reference.
FYI, I have a fix for this on release-1.8.x
(tested with my minimal ospTutorial app).
Great, thanks!
The macro
ospray_create_tasking_target
creates a target calledospray_tasking
. When find_package(ospray) is called twice from client projects, which may happen when a depedent CMake project has a depended project where both depend on OSPRay, the second call fails because it can't redefine the target. Something similar happens withospray_create_embree_target
.