[CMake] Having global scope for variable

Rolf Eike Beer eike at sf-mail.de
Sun Dec 23 04:53:34 EST 2012


Vivek Goel wrote:
> SET(FOO VALUE PARENT_SCOPE)
> Hi,
> Is there a way to set variable in Global scope in place of doing only for
> parent scope ?

Only parent scope, but you can use a global property.

cmake --help-command set_property

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121223/7702f7af/attachment.pgp>


More information about the CMake mailing list