[vtk-developers] New cmake modules: TBB broken?

clinton at elemtech.com clinton at elemtech.com
Tue Jan 8 12:34:09 EST 2019


I had similar problems with FindX11.cmake. 

I built VTK, then tried to use it in my application where I already have a find_package(X11), and it gave me tons of errors : 
add_library cannot create imported target "X11::...." because another target with the same name already exists. 

Clint 

----- On Jan 8, 2019, at 10:00 AM, David Gobbi <david.gobbi at gmail.com> wrote: 

> Hi Ben,

> The new FindTBB.cmake is broken, specifically in this section starting at line
> 88:
> set_target_propertes(TBB::${TARGET} PROPERTIES
> IMPORTED_LOCATION "${${PREFIX}_LIBRARY}"
> IMPORTED_LOCATION_DEBUG "${${PREFIX}_LIBRARY_DEBUG}"
> IMPORTED_LOCATION_RELEASE "${${PREFIX}_LIBRARY_RELEASE}")
> target_include_directories(TBB::${TARGET} INTERFACE "${${PREFIX}_INCLUDE_DIR}")

> There is an error for the "set_target_properties" typo, and these errors for
> "target_include_directories":

> ==
> target_include_directories called with non-compilable target type
> ==
> add_library cannot create imported target "TBB::" because another target
> with the same name already exists.
> ==

> - David

> _______________________________________________
> Powered by www.kitware.com

> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html

> Search the list archives at: http://markmail.org/search/?q=vtk-developers

> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtk-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20190108/75e3fd43/attachment.html>


More information about the vtk-developers mailing list