[cmake-developers] Suggestion: CMAKE_TOOLCHAIN_FILE warning improvement
Rolf Eike Beer
eike at sf-mail.de
Wed Apr 10 13:24:39 EDT 2013
Brad King wrote:
> On 04/10/2013 10:30 AM, Rolf Eike Beer wrote:
> > I think what Stephen had in mind (I really hope he had *g*) is to show
> > a different warning in that case, telling the user that the toolchain
> > file is ignored on any subsequent run.
>
> Another approach is to not warn when the -DFOO=bar option just
> repeats a value that is already in the cache without changing it.
> That would be a more general solution that covers this case too.
But the toolchain file is indeed a bit special, at it is only evaluated once.
Telling a user _why_ it is wrong to pass it again, especially if it is
different, would be a good idea IMHO. Which doesn't conflict with your
solution.
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130410/4c5fd69c/attachment.sig>
More information about the cmake-developers
mailing list