On 2/21/2014 5:37 PM, Ben Boeckel wrote:
> 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
We already agreed not to change the basic if(var) case,
and with quoting protection you can do
if("${PREFIX_${evil}_SUFFIX}")
to test if the so-called variable has a non-false value.
-Brad
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers