Just give ADD_SUBDIRECTORY a second argument that tells it where to put the corresponding binary directory structure.<div><br></div><div>Something like:</div><div>ADD_SUBDIRECTORY(../blah &quot;${CMAKE_CURRENT_BINARY_DIR}/blah&quot;)</div>
<div><br></div><div>(Assumes you do not also have an &quot;ADD_SUBDIRECTORY(blah)&quot; call and a &quot;./blah&quot; directory in addition to the &quot;../blah&quot; directory...)</div><div><br></div><div>&quot;cmake --help-command ADD_SUBDIRECTORY&quot; for more details.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 2:01 AM, Jack Andrews <span dir="ltr">&lt;<a href="mailto:effbiae@gmail.com">effbiae@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;">i&#39;m getting this error:<br>
<br>
&gt;cmake -G &quot;Visual Studio 8 2005&quot;<br>
CMake Error: Error in cmake code at<br>
C:/cygwin/home/jack/play/d/CMakeLists.txt:1:<br>
ADD_SUBDIRECTORY not given a binary directory but the given source<br>
directory &quot;C:/cygwin/home<br>
/jack/play/bdwgc&quot; is not a subdirectory of<br>
&quot;C:/cygwin/home/jack/play/d&quot;. &nbsp;When specifying an<br>
&nbsp;out-of-tree source a binary directory must be explicitly specified.<br>
Current CMake stack:<br>
[1] &nbsp; &nbsp; C:/cygwin/home/jack/play/d/CMakeLists.txt<br>
-- Configuring done<br>
<br>
<br>
the first line of my CMakeLists.txt is:<br>
ADD_SUBDIRECTORY(../bdwgc)<br>
<br>
<br>
is there a way to include the project defined in this sibling<br>
directory in the solution?<br>
<br>
<br>
ta, jack<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>