[cmake-developers] [Cmake-commits] CMake branch, next, updated. v2.8.2-557-gd77639f

Alexander Neundorf neundorf at kde.org
Thu Aug 26 15:35:36 EDT 2010


On Thursday 26 August 2010, Bill Hoffman wrote:
> On Thu, Aug 26, 2010 at 3:26 PM, Brad King <brad.king at kitware.com> wrote:
> > On 08/26/2010 03:22 PM, Alexander Neundorf wrote:
> >> It breaks builds which had something like
> >>
> >> target_link_library(not_a_target)
> >>
> >> i.e. only one argument, and this one argument is not a valid target.
> >>
> >> If this silent acceptance of wrong code must be preserved, I'll add a
> >> policy. Otherwise I'd call it a bugfix ;-)
> >
> > Let's just warn.  A policy seems a bit heavy for this.
>
> Sounds good, an error is too harsh.  

I colleague hit this today (i.e. the code was accepted), and was surprised 
that cmake did not report an error on this.

Instead of a warning and continuing I'd prefer a policy actually. I'd say it's 
a bug that it doesn't fail.

Alex



More information about the cmake-developers mailing list