title: cmake - NMake Makefiles issue
body: <p>I have a source code tree as follows</p>
  
  <pre><code>daily_build
    -&gt;src_dir1
    -&gt;src_dir2
     ..
  </code></pre>
  
  <p>We have been using cmake-gui to configure and generate for Visual Studio 8 2005.
  However, on a separate machine, we are trying to automate the build process for nightly builds.</p>
  
  <p>In order to this we are trying to run cmake from command line as follows</p>
  
  <pre><code>1) vcvars32.bat 
  2) svn co &lt;url path&gt; D:\daily_build
  3) cd daily_build\build\gen\host
  4) cmake -G"NMake Makefiles" D:\daily_build
  </code></pre>
  
  <p>However, CMake exits with error</p>
  
  <pre><code>CMake Error :CMake was unable to find a build program corresponding to "NMake Makefiles"......
  </code></pre>
  
  <p>However, in the very same prompt, I can run cl.exe and nmake.</p>
  
  <p>Further, If I look in the CMakeFiles folder, there is no error.log. All I can see is CMakeOutput.txt and the ouput file shows that CMakeCCompilerId.exe and CMakeCXXCompilerId.exe were both generated successfully.</p>
  
  <p>Does anyone have any ideas what am I doing wrong?</p>