[CMake] How to define a global scope variable ?
Andy Lego
legoandy at gmail.com
Tue Jun 23 00:13:17 EDT 2009
Hi,
set(global_name value CACHE INTERNAL FORCE)
Andy
On Mon, Jun 22, 2009 at 6:35 PM, Xiangyun Kong <xykong at yahoo.com> wrote:
>
>
> How could I define a global scoped variable in CMAKE, so that I could use
> something like,
>
> set (global_name ${global_name} {files})
>
> to collect all files in each sub-catogory recursively ?
>
> It seems I could only use PARENT_SCOPE to make the parent directory
> aware of the variable.
>
> Thanks for any hints.
>
> Xiangyun
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
--
Lets bike the world together
http://legoandy.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090622/0dbb07dc/attachment.htm>
More information about the CMake
mailing list