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
--
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