<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>I had similar problems with FindX11.cmake.</div><div><br data-mce-bogus="1"></div><div>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 :</div><div>add_library cannot create imported target "X11::...." because another target with the same name already exists.</div><div><br data-mce-bogus="1"></div><div>Clint</div><div><br></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Jan 8, 2019, at 10:00 AM, David Gobbi <david.gobbi@gmail.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Ben,</div><div dir="ltr"><br></div><div dir="ltr">The new FindTBB.cmake is broken, specifically in this section starting at line 88:<br><div><div>set_target_propertes(TBB::${TARGET} PROPERTIES</div><div>      IMPORTED_LOCATION "${${PREFIX}_LIBRARY}"</div><div>      IMPORTED_LOCATION_DEBUG "${${PREFIX}_LIBRARY_DEBUG}"</div><div>      IMPORTED_LOCATION_RELEASE "${${PREFIX}_LIBRARY_RELEASE}")    target_include_directories(TBB::${TARGET} INTERFACE "${${PREFIX}_INCLUDE_DIR}")</div></div><br><div>There is an error for the "set_target_properties" typo, and these errors for "target_include_directories":</div><br><div>==</div><div>target_include_directories called with non-compilable target type<br></div><div>==</div><div><div>add_library cannot create imported target "TBB::" because another target</div><div>  with the same name already exists.</div></div><div>==</div><br><div>  - David</div><br><br></div></div></div></div>
<br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br><br>Search the list archives at: http://markmail.org/search/?q=vtk-developers<br><br>Follow this link to subscribe/unsubscribe:<br>https://vtk.org/mailman/listinfo/vtk-developers<br></blockquote></div></div></body></html>