<div class="gmail_quote">On Fri, Jul 3, 2009 at 3:44 PM, James Bigler <span dir="ltr">&lt;<a href="mailto:jamesbigler@gmail.com">jamesbigler@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;">
<div><div></div><div class="h5"><br></div></div><div><div></div><div class="h5">I was under the impression that project() created some kind of scope
that allows you to reset certain variables.  Subdirectories allow you
to create a new scope, but you inherit all the values from the parent. 
I believe project() reset some variables (like for example the list of
targets), so you can have a newish &quot;top&quot; CMakeLists.txt.  I&#39;ve never
done this.  Again, I just setup one project and do a bunch of targets
each with unique names like you described with foo1, foo2, etc..</div></div></blockquote><div><br></div><div>Hmmm... sounds fishy to me. Absolutely none of this is documented in anything I&#39;ve read. Would be great to get some answers from a developer. For so long I thought that project() was required before add_library() or add_executable() was called, but now I&#39;m finding out that I&#39;m wrong. I really don&#39;t know what the heck project() does anymore.</div>
<div><br></div><div>What you&#39;re saying doesn&#39;t make much sense to me. I mean, I understand it, but I am not sure I agree with it just because logically it doesn&#39;t sound like enough to give project() a meaning. </div>
</div>