On Fri, Feb 21, 2014 at 16:37:51 -0500, Brad King wrote:
> IMO we should not be considering any change to implicit dereference
> in unquoted arguments. At most we should make if("FOO") not do it.
Any reason why? In my search of VTK and ParaView, there are lots of
places which use statements like:
if (${path} STREQUAL "string")
which would work just fine after killing implicit dereferences as well
and fights the principle of least surprise if ${path} is the name of a
variable. By far, the most popular implicit dereference intentional use
is "if (varname)" which is why I'd let that one go.
--Ben
--
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