[cmake-developers] New EVIS parser moving forward (3.1)

Alexander Neundorf neundorf at kde.org
Sun Feb 23 08:38:21 EST 2014


On Friday, February 21, 2014 14:32:18 Brad King wrote:
> On 02/21/2014 02:18 PM, Jean-Christophe Fillion-Robin wrote:
> > If possible, not having implicit expansion for quoted argument
> > would be great at make things more intuitive and practical.
> 
> This has been discussed before.  It will take some refactoring
> of the CMake language command processing implementation to
> tell commands, like if(), about the delimiters used for each
> argument: unquoted, quoted, or bracket arguments. 


Yes.
A simple stupid way to fix the problem for STREQUAL would be to add an 
alternative comparison operator to if(), which never expands variables, and 
leave STREQUAL as it is. E.g.

if ("${Foo}" == "Bar")

No risk, easy to do, no backwards compatibility issues, but somewhat ugly, as 
was concluded the last time this was discussed here.

Alex




More information about the cmake-developers mailing list