<div class="gmail_quote">On Tue, Jun 26, 2012 at 10:44 AM, Xiaoxiao Liu <span dir="ltr">&lt;<a href="mailto:xiaoxiao.liu@kitware.com" target="_blank">xiaoxiao.liu@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">
It&#39;s the  Module_ITKVtkGlue that depends on VTK , not your own code.<div><div>You should be able to configure VTK_DIR when you enabled Module_ITKVtkGlue.</div><div>(Checkout &quot;ITK/Modules/Bridge/VtkGlue/itk-module-init.cmake&quot; ). </div>
</div></blockquote><div><br></div>Xiaoxiao,<div><br>Yep, that&#39;s what I thought. I did configure VTK_DIR when I enabled Module_ITKVtkGlue - then ITK built fine. However, then in my client program, everything works fine, as long as I find_package(VTK) like I mentioned. What I&#39;m trying to say is that I don&#39;t think that should be necessary, and you seem to agree :)<br clear="all">
<br></div><div>I have attached the demo I&#39;m using - would you mind trying to build this without the find_package(VTK) in the CMakeLists.txt? I have reproduced this on two machines.</div><div><br></div><div>David</div>
</div>