<div class="gmail_quote">On Thu, Oct 20, 2011 at 12:56 PM, Michael Hertling <span dir="ltr">&lt;<a href="mailto:mhertling@online.de">mhertling@online.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 10/20/2011 06:59 PM, Robert Dailey wrote:<br>
&gt; Let me ask this,<br>
&gt;<br>
&gt; What would be the parent of a function located in the root CMakeLists file<br>
&gt; but called from a subordinate CMakeLists file?<br>
<br>
</div>It&#39;s the subordinate CMakeLists.txt file&#39;s parent, but what Michael<br>
probably aims at is that some variables undergo a lazy evaluation,<br>
i.e. when you say<br>
<div class="im"><br>
set( CMAKE_MFC_FLAG 2 )<br>
add_executable( ... )<br>
<br>
</div>in a function, and CMAKE_MFC_FLAG isn&#39;t evaluated till generation time,<br>
the value &quot;2&quot; will be lost since it is limited to the function&#39;s scope.<br>
See the following project for an example:</blockquote><div><br></div><div>Does this lazy evaluation also apply to variables set with PARENT_SCOPE? If so, that would explain why not even that helped. </div></div>