I found out where I was going wrong based on how you guys said it isn&#39;t used by add_executable(). I was doing this before:<div><br></div><div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>set( CMAKE_MFC_FLAG 2 PARENT_SCOPE )</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>add_executable( ${project_name} WIN32 ${source} )</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>set( CMAKE_MFC_FLAG 0 PARENT_SCOPE )</div>
<div><br></div><div>I did this so that if I create any projects AFTER this one (in the same directory &amp; CMakeLists.txt script) that DO NOT use MFC, I didn&#39;t want them to be affected by the flag. I&#39;d still like to do this but it&#39;s no big deal. Removing the bottom &#39;set&#39; fixed it.</div>
<div><br></div><div>---------</div>Robert Dailey<br>
<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 4:44 PM, Robert Dailey <span dir="ltr">&lt;<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There isn&#39;t any way to do a trace from cmake gui is there?<div><br></div><div>Maybe that&#39;s a separate feature request on its own :P</div><div><br></div><div>I&#39;ll check out the trace and follow up with results.<br clear="all">

<div><br></div><div>---------</div>Robert Dailey<div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 4:16 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On 10/20/2011 5:11 PM, Robert Dailey wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So I created a small project to attempt to reproduce this problem on a<br>
much smaller scale, but it functioned as designed in that case.<br>
<br>
It&#39;s only in my large, corporate project that this happens. Is there any<br>
way to dump a &quot;scope stack&quot; or call stack of some sort in CMake? That<br>
way I can see what the real parent scope is? Maybe it&#39;s not what I think<br>
it is.<br>
<br>
</blockquote>
<br></div>
You could try cmake --trace<br>
<br>
It might help.<br><font color="#888888">
<br>
-Bill</font><div><div></div><div><br>
<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/<u></u>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/<u></u>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/<u></u>listinfo/cmake</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>