<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Attached is the version of my CMakeLists.txt before I started meddling with find_package(vtk). It makes not difference to change it to this: </div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><span style="font-size:13px">FIND_PACKAGE(VTK 6.0 REQUIRED COMPONENTS vtkGUISupportQtOpenGL NO_MODULE)</span><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Also, it is these 3 libraries which are included into projects input erroneously:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="verdana, sans-serif">vtkTestingGenericBridge.lib</font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px">
<font face="verdana, sans-serif">vtkTestingIOSQL.lib</font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="verdana, sans-serif">vtkTestingRendering.lib</font></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 9:07 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, May 23, 2013 at 11:19 AM, Marcus D. Hanwell<br>
<<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>> wrote:<br>
> On Thu, May 23, 2013 at 11:13 AM, Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>> wrote:<br>
>> Now I call vtk from CMakeLists like this:<br>
>> FIND_PACKAGE(VTK 6.0 REQUIRED COMPONENTS vtkGUISupportQtOpenGL NO_MODULE)<br>
>><br>
>> but when compiling the project I still get LNK1181 with<br>
>> vtkTestingGenericBridge.lib if I keep BUILD_TESTING set to off.<br>
>><br>
>> Setting BUILD_TESTING to 1 solves the issue (regardless of the way how<br>
>> find_package is called). But I think it is stupid to require users to enable<br>
>> building of internal tests just so their normal applications can link<br>
>> properly.<br>
>><br>
> No one is suggesting you should have to turn on testing for your<br>
> normal application to work. It looks like you have found a bug, and we<br>
> will work on ensuring it is fixed in the next rc. Thanks for testing,<br>
> and your feedback.<br>
><br>
</div></div>On looking into this further I am unable to reproduce it. I see you<br>
are doing this on Windows, and vtkTestingGenericBridge seems to be<br>
giving you the issue. This is only referenced by the vtkFiltersGeneric<br>
TEST_DEPENDS as far as I can tell, could you provide a fuller sample<br>
of your CMake code? It looks like you are trying to find<br>
vtkGUISupportQtOpenGL, which has no dependency on this module,<br>
printing the contents of ${VTK_LIBRARIES} would be useful, along with<br>
exact VTK version (RC1 I guess), compiler, steps to build VTK locally.<br>
<br>
Thanks for reporting this issue, hopefully we can get to the bottom of<br>
this soon (I can give this a try on a Windows machine, but I don't see<br>
how vtkTestingGenericBridge is getting linked to from<br>
vtkGUISupportQtOpenGL to be honest - even with testing turned on).<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcus<br>
</font></span></blockquote></div><br></div>