[CMake] Question on internal CMAKE_* variables and scope

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jul 31 14:37:45 EDT 2012


On Tuesday 31 July 2012, Fabio Fracassi wrote:
> Hi,
> 
> I ran into some problems when I tried to set a cmake internal variable
> (CMAKE_MODULE_PATH) from a function.
> I understand that when I use list() commands an new local scoped
> variable is created that I have to "export" to the parent scope. I tried
> to do that but it seems that the scope of cmake internal variables is a
> different thing.

No, they are normal variables.
Can you post an example which shows the problem ?

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120731/a4ac224b/attachment.htm>


More information about the CMake mailing list