[cmake-developers] [PATCH] remove "x" placeholder from STREQUAL operands
Rolf Eike Beer
eike at sf-mail.de
Fri Apr 18 03:07:37 EDT 2014
Matthew Woehlke wrote:
> On 2014-04-13 03:37, Rolf Eike Beer wrote:
> > Sadly the expression is even expanded when it is quoted as long as it is a
> > valid variable name. So what you could do is: replace the "x" by a simple
> > space and then quote the match string, because " Linux" is no valid
> > variable name.
>
> set(" Linux" Windows) # succeeds
Doh! You are right, I confused that with target names, where we have a
restriction on what names are allowed. Brad, what about nuking at least all
control characters and whitespace from variable names in 3.1? I don't think
that anyone has used them on purpose, and accidentially using them will only
cause trouble.
Eike
--
More information about the cmake-developers
mailing list