On Wed, Aug 11, 2010 at 4:21 AM, Diablo 666 <span dir="ltr">&lt;<a href="mailto:thediablo666@hotmail.de">thediablo666@hotmail.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
Hi,<br><br>I&#39;m getting in some trouble with a self linking directory under Linux here. In /home/, there is a sym-link &quot;zam&quot;, linking to . (please don&#39;t ask me, why they created this one...)<br></div></blockquote>
<div><br></div><div>OK... I won&#39;t ask &quot;why?&quot; -- the fact that you told us not to ask means you realize this is some flavor of crazy....</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br>Now I have a directory Test with a sub-directory Foo and the following CMakeLists.txt:<br><br>cmake_minimum_required(VERSION 2.6)<br>PROJECT (TEST)<br><br>ADD_SUBDIRECTORY(Foo)<br><br>ccmake now creates the following message:<br>
<br>CMake Error at CMakeLists.txt:4 (ADD_SUBDIRECTORY):<br>   add_subdirectory not given a binary directory but the given source<br>   directory &quot;/home/zam/zam/zam/diablo/Test/Foo&quot; is not a subdirectory of<br>   &quot;/home/zam/zam/diablo/Test&quot;.  When specifying an out-of-tree source a<br>
   binary directory must be explicitly specified.<br><br>Any idea, why this is happening?<br></div></blockquote><div><br></div><div>I would guess it&#39;s because of the symlink to &quot;.&quot; that you mention. Does the same thing happen if you build in a non-zam based directory?</div>
<div><br></div><div>How did you invoke cmake? What are the actual source and build directories?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br>Best regards,<br>Andreas<br><br><br>                                               </div>
<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/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/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/listinfo/cmake</a><br></blockquote></div><br>