[cmake-developers] Alternate if() without implicit variable expansion

Nils Gladitz nilsgladitz at gmail.com
Thu Sep 4 11:41:23 EDT 2014


On 09/04/2014 05:13 PM, Brad King wrote:
> As I have explained every other time it has come up there is exactly
> one way to fix it: a policy that makes expansion happen only for
> unquoted arguments.  Someone just has to do it.
>

The fact that this behaviour has persisted this long and that no one has 
volunteered to fix it is a bit intimidating.

How large scale would the required changes be?
I assume the fact that arguments were quoted would have to be preserved 
and the implementation of all existing commands touched so that they can 
actually make use of that information (even if only if() would currently 
make use of it).

Are there any major pitfalls to look out for?

Nils



More information about the cmake-developers mailing list