<div class="gmail_quote"><div>&lt;snip&gt;<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>You are correct: projects that are all intermingled together with add_subdirectory calls in a parent project *can* interfere with each other, especially if they do anything with &quot;FORCE&quot; and change variables to &quot;INTERNAL&quot; to hide them from developers. And then there can simply be unintended name clashes...</div>
</div></blockquote><div>&lt;snip&gt;<br><br>I feared as much.   Some sort of project namespace environment variable resolution might help with above issue(see below).  Can&#39;t say any other tool I ever used did not have the same issue however. <br>
<br>CMAKE_EXE_LINKER_FLAGS<br>vs<br><br>Boost.CMAKE_EXE_LINKER_FLAGS</div>dcmtk.CMAKE_EXE_LINKER_FLAGS<br><br>&lt;snip&gt;<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div></div><div>One way to overcome these things, but still build projects from source code as needed is to use a new feature in CMake 2.8: the ExternalProject module. There&#39;s a cmake function in there called &quot;ExternalProject_Add&quot; that allows you to build another project as a separate entity so that its CMake settings are still entirely independent of the settings in all the other projects you&#39;re also building.</div>

<div><br></div><div>See &quot;cmake --help-module ExternalProject_Add&quot; -- and the test in the CMake source tree at &quot;CMake/Tests/ExternalProject&quot; -- and the article I wrote about this in Kitware&#39;s &quot;The Source&quot; newsletter: the October 2009 edition: <a href="http://www.kitware.com/products/archive/kitware_quarterly1009.pdf" target="_blank">http://www.kitware.com/products/archive/kitware_quarterly1009.pdf</a> (pp. 14-17)</div>

<div><br></div><div>Hopefully, this is helpful... Let me know if you have any questions about using it.</div><div><br></div><div>:-)</div><div>David Cole</div><div><br></div></div>
</blockquote></div>&lt;snip&gt;<br><br>I tried the command <br><br>C:\Users\bdavis&gt;cmake --help-module ExternalProject_Add<br>
cmake version 2.8.0<br>
Argument &quot;ExternalProject_Add&quot; to --help-module is not a CMake module.<br>
<br clear="all"><br>Must I get latest form source?  Or did I do above incorrectly.  Also ExternalProject_add is not in : file:///C:/Program%20Files%20%28x86%29/CMake%202.8/doc/cmake-2.8/cmake-commands.html  (Windows Install document tree)  should it be or is it new?<br>
<br>-- <br>Brian J. Davis<br><br>