Just tested it on linux and the same remark applies.<br><br>//-------------------------<br>Case1: <br>mkdir TestCase1 &amp;&amp; mkdir TestCase1/Debug &amp;&amp; echo &quot;PROJECT(foo)&quot; &gt; TestCase1/CMakeLists.txt &amp;&amp; cd TestCase1/Debug &amp;&amp; cmake ../CMakeLists.txt<br>

<br>Output:<br><font size="1">-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>-- Check for working C compiler: /usr/local/bin/gcc<br>-- Check for working C compiler: /usr/local/bin/gcc -- works<br>

-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: /usr/local/bin/c++<br>-- Check for working CXX compiler: /usr/local/bin/c++ -- works<br>-- Detecting CXX compiler ABI info<br>

-- Detecting CXX compiler ABI info - done<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/jchris/Projects/TestInSource/TestCase1</font><br><br>//-------------------------<br>Case2:<br>

mkdir TestCase2 &amp;&amp; mkdir TestCase2/Debug &amp;&amp; echo &quot;PROJECT(foo)&quot; &gt; TestCase2/CMakeLists.txt &amp;&amp; cd TestCase2/Debug &amp;&amp; cmake ..<br><br>Output<br><font size="1"><span style="font-family: courier new,monospace;">-- The C compiler identification is GNU</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-- The CXX compiler identification is GNU</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- Check for working C compiler: /usr/local/bin/gcc</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-- Check for working C compiler: /usr/local/bin/gcc -- works</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- Detecting C compiler ABI info</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-- Detecting C compiler ABI info - done</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- Check for working CXX compiler: /usr/local/bin/c++</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-- Check for working CXX compiler: /usr/local/bin/c++ -- works</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- Detecting CXX compiler ABI info</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-- Detecting CXX compiler ABI info - done</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- Configuring done</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-- Generating done</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- Build files have been written to: /home/jchris/Projects/TestInSource/TestCase2/Debug</span></font><br>

<br>Jc<br><br><div class="gmail_quote">On Thu, Jun 2, 2011 at 6:29 PM, The Novice Coder <span dir="ltr">&lt;<a href="mailto:cmake@randmsystems.com" target="_blank">cmake@randmsystems.com</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;">I&#39;ve noticed an inconsistency in CMake&#39;s generation..  For example I go through the following sequence:<br>



<br>
cd \Project<br>
mkdir Debug<br>
cd Debug<br>
<br>
Then I either:<br>
<br>
cmake -G &quot;Visual Studio 9 2008&quot; -DCMAKE_BUILD_TYPE=Debug ..\CMakeLists.txt<br>
<br>
It will generate, and then place the project files in \Project.<br>
<br>
<br>
But if I use:<br>
<br>
cmake -G &quot;Visual Studio 9 2008&quot; -DCMAKE_BUILD_TYPE=Debug ..<br>
<br>
It will generate, and then place the project files in \Project\Debug<br>
<br>
<br>
Why are these different?<br>
Are the differences expected behavior?<br>
I&#39;m a bit confused..<br>
<br>
Thanks!<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><br clear="all"><br>-- <br><a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849</a><br><br>