[CMake] Multiple versions of ITK in one build?

Bill Hoffman bill.hoffman at kitware.com
Tue May 28 10:34:00 EDT 2013


On 5/28/2013 10:16 AM, Zamir Khan wrote:
> We have a project where multiple modules rely on ITK. Most modules have been
> upgraded to ITK 4.31, but one still relies on ITK 3.20 and it would take a
> significant effort to upgrade it. In the meantime, is there a way for us to
> keep these modules under a single top-level CMake and have them use their
> respective versions of ITK?
>
> We thought we could just try to overwrite the ITK_DIR variable in the
> appropriate place, but our first naive implementation of this did not work.
>
> Just wondering if someone has done this and whether it is possible (before
> we dive deeper).
>
> Thanks!
This is a question for the ITK mailing list.
http://www.itk.org/mailman/listinfo/insight-users

But, I don't think it will be easy to do what you want.  There is always 
a way, but it will be a big hack...  :)

-Bill



More information about the CMake mailing list