[cmake-developers] [PATCH] remove "x" placeholder from STREQUAL operands

Brad King brad.king at kitware.com
Fri Apr 18 09:07:38 EDT 2014


On 04/18/2014 08:58 AM, Rolf Eike Beer wrote:
> To forbid whitespace and control characters in variable names can IMHO only be good.

Some people use arbitrary variable names as a way to do key/value tables.
In such cases it is intentional to use arbitrary characters in variable
names even though they are never written literally in the source.

IIRC Ben's work on variable expansion rules includes restrictions on what
can appear literally inside ${} references, but that is as far as we can
go in restricting variable names.  Nested evaluation will still allow
arbitrary characters so the key/value-table use case will still work.

-Brad




More information about the cmake-developers mailing list