[Insight-developers] In-source build : gdcm

David Cole david.cole at kitware.com
Thu Oct 14 11:32:17 EDT 2010


Everyone who has ever accidentally done an in-source build has noticed this.
It's the main reason why I so strongly discourage ever building in-source.

It's fine as long as you don't have any locally modified source files, but
if you do, then it's a real pain to recover from.

I just hate hearing about premature greying. No fun.

Avoid premature greying: do out-of-source builds!


:-)
David C.


On Thu, Oct 14, 2010 at 10:25 AM, kent williams <norman-k-williams at uiowa.edu
> wrote:

>  I don’t know if anyone else has noticed this, but this CMake quirk has
> caused premature greying amongst some of our RAs:
>
> If you accidentally configure for an In-source build, and then try and use
> the same source tree for an out-of-source build, it will appear to configure
> correctly, but the out of source build tree is un-buildable.  CMake still
> wants you to build in-source.
>
> You have to either kill your source tree and check it out again, or
> manually remove all the ‘CMake droppings’ in your source tree, which are
> considerable in number, and rather obscure if you’re not a grizzled CMake
> veteran.
>
>
>
> On 10/13/10 4:54 PM, "Luis Ibanez" <luis.ibanez at kitware.com> wrote:
>
>
> Hi Mathieu,
>
> CPack supports in-source builds.
>
> The warning is probably unnecessary.
>
>
> However, we have to setup a Nightly
> build that tests the Installation of ITK.
> (that's in my plate...)
>
>
>     Luis
>
>
> -----------------------------------------------------------
> On Mon, Oct 11, 2010 at 8:06 AM, Mathieu Malaterre <
> mathieu.malaterre at gmail.com> wrote:
>
> On Mon, Oct 11, 2010 at 2:06 AM, Luis Ibanez <luis.ibanez at kitware.com>
> wrote:
> >
> > Hi Mathieu,
> >
> > I know that we encourage users to do out-of-source builds,
> > but was not aware that we are now precluding users from
> > making in-source builds:
> >
> >> cd ITK
> >> cmake .
> >
> >
> > Make Error at Utilities/gdcm/CMakeLists.txt:34 (MESSAGE):
> >   GDCM requires an out of source Build.  Please create a separate binary
> >   directory and run CMake there.
> >
> >
> > -- Configuring incomplete, errors occurred!
> >
> >
> > -----------------------
> >
> >
> > Is there a deep technical reason for this change ?
>
> CPack does not support in-source built AFAIK. I'll change the error to
> a warning.
>
> Thanks for the report.
> --
> Mathieu
>
>
>
> ------------------------------
> _______________________________________________
> 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.html
>
> 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
>
>
> _______________________________________________
> 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.html
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101014/348c7dc0/attachment.htm>


More information about the Insight-developers mailing list