Hi,<br><br>set(global_name value CACHE INTERNAL FORCE)<br><br>Andy<br><br><div class="gmail_quote">On Mon, Jun 22, 2009 at 6:35 PM, Xiangyun Kong <span dir="ltr">&lt;<a href="mailto:xykong@yahoo.com">xykong@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
How could I define a global scoped variable in CMAKE, so that I could use<br>
something like,<br>
<br>
    set (global_name ${global_name} {files})<br>
<br>
to collect all files in each sub-catogory recursively ?<br>
<br>
It seems I could only use PARENT_SCOPE to make the parent directory<br>
aware of the variable.<br>
<br>
Thanks for any hints.<br>
<br>
Xiangyun<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Lets bike the world together<br><a href="http://legoandy.com">http://legoandy.com</a><br>