Hey guys,

Here's an example script that may (or may not!) illuminate things somewhat:

   https://gist.github.com/dlrdave/10977804

I think the main point of having VARIABLE in the get_property signature is to test whether or not a variable is SET or DEFINED with the uniform api of get_property. It may have been added/implemented simply because it was easy to do given its implementation.

I agree it's a weird way to set a variable... But it is a nice way to test for a variable's set-ness without worrying about the whole confusion that arises from using "if" tests with variable names and strings in the cmake language. Especially if a variable contains another variable's name as its contents...


HTH,
David C.

--

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