[CMake] FUNCTION doesn't changes parent variables

Alejandro Morell Garcia alejandro.morell at gmail.com
Wed Apr 23 12:15:24 EDT 2008


David Cole escribió:

> Why MYTEST function doesn't changes the parent variable MYMSG?
> Do I need to FORCE it?

No, you need to PARENT_SCOPE it. See cmake --help-command SET for details
about PARENT_SCOPE.


HTH,
David

It worked, thanks.
It appears in SET command documentation but no in FUNCTION :(. It would be
appear there too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080423/ee8b2b38/attachment.htm>


More information about the CMake mailing list