<div class="gmail_quote"><div><snip><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 "FORCE" and change variables to "INTERNAL" to hide them from developers. And then there can simply be unintended name clashes...</div>
</div></blockquote><div><snip><br><br>I feared as much. Some sort of project namespace environment variable resolution might help with above issue(see below). Can'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><snip><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's a cmake function in there called "ExternalProject_Add" 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're also building.</div>
<div><br></div><div>See "cmake --help-module ExternalProject_Add" -- and the test in the CMake source tree at "CMake/Tests/ExternalProject" -- and the article I wrote about this in Kitware's "The Source" 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><snip><br><br>I tried the command <br><br>C:\Users\bdavis>cmake --help-module ExternalProject_Add<br>
cmake version 2.8.0<br>
Argument "ExternalProject_Add" 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>