<div class="gmail_quote">On Tue, Jun 26, 2012 at 10:44 AM, Xiaoxiao Liu <span dir="ltr"><<a href="mailto:xiaoxiao.liu@kitware.com" target="_blank">xiaoxiao.liu@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It'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 "ITK/Modules/Bridge/VtkGlue/itk-module-init.cmake" ). </div>
</div></blockquote><div><br></div>Xiaoxiao,<div><br>Yep, that'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'm trying to say is that I don't think that should be necessary, and you seem to agree :)<br clear="all">
<br></div><div>I have attached the demo I'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>