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

Ben Boeckel ben.boeckel at kitware.com
Fri Feb 21 17:37:46 EST 2014


On Fri, Feb 21, 2014 at 17:11:27 -0500, Brad King wrote:
> By limiting the change to quoted and bracket arguments we preserve
> existing behavior in common existing code but allow authors to protect
> themselves by quoting.

That also means I can't protect my code from things like:

    set(evil "" STREQUAL bogus OR TRUE OR "")
    if (PREFIX_${evil}_SUFFIX)
        message("Evil prevails")
    endif ()

by quoting the 'evil' expansion (these corner cases pop into my head
whenever I'm reading or thinking about quoting rules and such...I blame
writing a lot of shell code and being paranoid about things being safe).

--Ben



More information about the cmake-developers mailing list