[cmake-developers] New EVIS parser moving forward (3.1)
Matthew Woehlke
mw_triad at users.sourceforge.net
Fri Feb 21 15:34:44 EST 2014
On 2014-02-21 14:51, Ben Boeckel wrote:
> If I made a branch which warned when implicit expansion was done, would
> folks be willing to run it over various codebases to see how annoying it
> would be to just remove it altogether?
To be clear, are we talking about in the case of e.g. STREQUAL, or
*ever*? Because I'm sure breaking 'if(Pkg_FOUND)' would be very, very
bad :-).
I'd be a little suspicious of even the former; I know at least in my
case, greater understanding of implicit expansion leads to greater
*reliance* on it as a guard against unintended expansion (i.e. 'if (FOO
STREQUAL "...")' instead of 'if ("${FOO}" STREQUAL "...")').
(Loosely related: if variable names were sane, it would at least be safe
to write e.g. 'if ("#${FOO}" STREQUAL "#...")'. But alas, '#${FOO}'
might still be the name of a variable.)
--
Matthew
More information about the cmake-developers
mailing list