[CMake] Multiple versions of ITK in one build?

Bill Lorensen bill.lorensen at gmail.com
Tue May 28 11:30:40 EDT 2013


I just re-read your question. Superbuild won't help.



On Tue, May 28, 2013 at 11:29 AM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> You could use cmake's superbuild facility to build both itk3 and itk4 in a
> superbuild tree.
>
>
>
> On Tue, May 28, 2013 at 11:02 AM, John Drescher <drescherjm at gmail.com>wrote:
>
>> On Tue, May 28, 2013 at 10:16 AM, Zamir Khan <zamir.khan at gmail.com>
>> 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).
>> >
>>
>> On windows I have several completely separate build trees with their
>> own environment. This way I can build for different compiler versions,
>> 32/64 bit and different versions of libraries like this. Inside the
>> root of each build tree there is a link to the appropriate Visual
>> Studio command prompt that has its default folder set to the build
>> tree root. Also in the root there is a batch file that sets quite a
>> few _DIR environment variables to help cmake find the correct compiled
>> libraries. This has worked well for the 5 or so years that I have done
>> it this way. I do not use INSTALL targets so none of the binaries end
>> up in Program Files.
>>
>> John
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130528/916d94ce/attachment.htm>


More information about the CMake mailing list