On Wednesday, 23. April 2014, 18:54:39, Matthew Woehlke wrote:
> > if (" ${arg}" STREQUAL " TOTO")
> 
> set(" TOTO" "evil")

You sure? When I checked, this did not work. Also, the following gives me a 
syntax error:

set (" foo" "Evil!")
message( "${ foo}")

  Syntax error in cmake code at
    /home/zing/scratch/cmake_testbed/CMakeLists.txt:100
  when parsing string
    ${ foo}
  syntax error, unexpected cal_SYMBOL, expecting } (7)

> See also
> http://permalink.gmane.org/gmane.comp.programming.tools.cmake.devel/9936.

This is totally different, in that it uses an unsafe prefix. Just like the 
"_ASDF_" I used in my first response, the "x" *can* be the beginning of a 
variable name. The space can not start a vaariable name.

Cheers,
  Johannes
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to