[Insight-developers] Building ITK with Module_ITKVtkGlue forces client applications to find_package(VTK)?

Bill Lorensen bill.lorensen at gmail.com
Tue Jun 26 12:04:58 EDT 2012


David,

Did you try this after my changes to ITK last night? There were some
issues with the ITK glue.

On Tue, Jun 26, 2012 at 11:37 AM, David Doria <daviddoria at gmail.com> wrote:
> On Tue, Jun 26, 2012 at 10:44 AM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com>
> wrote:
>>
>> It's the  Module_ITKVtkGlue that depends on VTK , not your own code.
>> You should be able to configure VTK_DIR when you
>> enabled Module_ITKVtkGlue.
>> (Checkout "ITK/Modules/Bridge/VtkGlue/itk-module-init.cmake" ).
>
>
> Xiaoxiao,
>
> 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 :)
>
> 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.
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-developers mailing list