<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">&lt;<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>&gt;</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>
&lt;<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>&gt; wrote:<br>
&gt; On Thu, May 23, 2013 at 11:13 AM, Dženan Zukić &lt;<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Now I call vtk from CMakeLists like this:<br>
&gt;&gt; FIND_PACKAGE(VTK 6.0 REQUIRED COMPONENTS vtkGUISupportQtOpenGL NO_MODULE)<br>
&gt;&gt;<br>
&gt;&gt; but when compiling the project I still get LNK1181 with<br>
&gt;&gt; vtkTestingGenericBridge.lib if I keep BUILD_TESTING set to off.<br>
&gt;&gt;<br>
&gt;&gt; Setting BUILD_TESTING to 1 solves the issue (regardless of the way how<br>
&gt;&gt; find_package is called). But I think it is stupid to require users to enable<br>
&gt;&gt; building of internal tests just so their normal applications can link<br>
&gt;&gt; properly.<br>
&gt;&gt;<br>
&gt; No one is suggesting you should have to turn on testing for your<br>
&gt; normal application to work. It looks like you have found a bug, and we<br>
&gt; will work on ensuring it is fixed in the next rc. Thanks for testing,<br>
&gt; and your feedback.<br>
&gt;<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&#39;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>