It would seem so...<br><br>CMakeLists.txt:<br>=============<br>MESSAGE(&quot;before PROJECT&quot;)<br>MESSAGE(&quot;CMAKE_SOURCE_DIR=${CMAKE_SOURCE_DIR}&quot;)<br>MESSAGE(&quot;CMAKE_BINARY_DIR=${CMAKE_BINARY_DIR}&quot;)<br>
<br>PROJECT(hey NONE)<br><br>MESSAGE(&quot;after PROJECT&quot;)<br>MESSAGE(&quot;CMAKE_SOURCE_DIR=${CMAKE_SOURCE_DIR}&quot;)<br>MESSAGE(&quot;CMAKE_BINARY_DIR=${CMAKE_BINARY_DIR}&quot;)<br><br><br>Running that file with CMake 2.6.4 yields something like:<br>
<span style="color: rgb(255, 0, 0);">before PROJECT</span>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_SOURCE_DIR=C:/Users/davidcole/Desktop/b</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_BINARY_DIR=C:/Users/davidcole/Desktop/b/b</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">after PROJECT</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_SOURCE_DIR=C:/Users/davidcole/Desktop/b</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_BINARY_DIR=C:/Users/davidcole/Desktop/b/b</span></p>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;"><br></p>Similarly with 2.8.1-rc3:<br>
<span style="color: rgb(255, 0, 0);"></span><span style="color: rgb(255, 0, 0);">before PROJECT</span>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_SOURCE_DIR=C:/Users/davidcole/Desktop/b</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_BINARY_DIR=C:/Users/davidcole/Desktop/b/c</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">after PROJECT</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_SOURCE_DIR=C:/Users/davidcole/Desktop/b</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMAKE_BINARY_DIR=C:/Users/davidcole/Desktop/b/c</span></p>
<p style="margin: 0px; text-indent: 0px;"><br></p><br><br><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 6:11 AM, Marcel Loose <span dir="ltr">&lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi all,<br>
<br>
Can you rely on the value of CMAKE_BINARY_DIR (and CMAKE_SOURCE_DIR for<br>
that matter) before the PROJECT() statement has been seen by CMake?<br>
<br>
Best regards,<br>
Marcel Loose.<br>
<br>
<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>