Get rid of the quotes in this part of your PATH:<br>&quot;C:\Program Files\Microsoft<br>
Visual Studio 9.0\VC\bin&quot;<br><br>That&#39;s probably what&#39;s messing it up.... But they shouldn&#39;t be there if you&#39;re using the &quot;Vistual Studio command prompt&quot; so the question is: where did they come from?<br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 12:23 PM, Chauhan, Vikas <span dir="ltr">&lt;<a href="mailto:vikas.chauhan@anritsu.com">vikas.chauhan@anritsu.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Bill Hoffman [mailto:<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>]<br>
</div><div><div></div><div class="h5">&gt; Sent: 14 January 2010 16:19<br>
&gt; To: Chauhan, Vikas<br>
&gt; Cc: Bill Hoffman; <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
&gt; Subject: Re: [CMake] using cmake on windows - query on existing<br>
targets<br>
&gt;<br>
&gt; Chauhan, Vikas wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; -----Original Message-----<br>
&gt; &gt;&gt; From: Bill Hoffman [mailto:<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>]<br>
&gt; &gt;&gt; Sent: 14 January 2010 13:57<br>
&gt; &gt;&gt; To: Chauhan, Vikas<br>
&gt; &gt;&gt; Cc: Bill Hoffman; <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
&gt; &gt;&gt; Subject: Re: [CMake] using cmake on windows - query on existing<br>
&gt; &gt; targets<br>
&gt; &gt;&gt; Chauhan, Vikas wrote:<br>
&gt; &gt;&gt; -------------------------------------<br>
&gt; &gt;&gt;&gt; -------------------------------<br>
&gt; &gt;&gt;&gt; C:\Work\PCT_LTE\Hercules\CID\MapperGenerator\build_nmake&gt;cmake ../<br>
&gt; &gt; -G<br>
&gt; &gt;&gt;&gt; &quot;NMake Mak<br>
&gt; &gt;&gt;&gt; efiles&quot;<br>
&gt; &gt;&gt;&gt; CMake Error: CMake was unable to find a build program<br>
corresponding<br>
&gt; &gt; to<br>
&gt; &gt;&gt;&gt; &quot;NMake Ma<br>
&gt; &gt;&gt;&gt; kefiles&quot;.  CMAKE_MAKE_PROGRAM is not set.  You probably need to<br>
&gt; &gt; select a<br>
&gt; &gt;&gt;&gt; differe<br>
&gt; &gt;&gt;&gt; nt build tool.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Do you have nmake in your PATH?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; -Bill<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt; Yes, it is present. Following the version of nmake:<br>
&gt; &gt; Microsoft (R) Program Maintenance Utility Version 9.00.21022.08<br>
&gt; &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Can you try this:<br>
&gt;<br>
&gt; cmake ../ -G&quot;NMake Makefiles&quot; --trace<br>
&gt;<br>
&gt; What is the output?<br>
&gt;<br>
</div></div>The output is:<br>
------------------------------------------------------------------------<br>
------------------<br>
Running with trace output on.<br>
C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/CMakeLists.txt(1):<br>
cmake_minimum_required(VERSION 2.8 )<br>
C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/CMakeLists.txt(4):<br>
project(MapperGenerator )<br>
C:/Program Files/CMake<br>
2.8/share/cmake-2.8/Modules/CMakeNMakeFindMake.cmake(16):<br>
SET(CMAKE_MAKE_PROGRAM nmake CACHE STRING Program used to build from<br>
makefiles. )<br>
C:/Program Files/CMake<br>
2.8/share/cmake-2.8/Modules/CMakeNMakeFindMake.cmake(18):<br>
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM )<br>
<div class="im">CMake Error: CMake was unable to find a build program corresponding to<br>
</div>&quot;NMake Makefiles&quot;.  CMAKE_MAKE_PROGRAM is not set.  You probably need to<br>
<div class="im">select a different build tool.<br>
CMake Error: Error required internal CMake variable not set, cmake may<br>
be not be built correctly.<br>
Missing variable is:<br>
CMAKE_C_COMPILER_ENV_VAR<br>
CMake Error: Error required internal CMake variable not set, cmake may<br>
be not be built correctly.<br>
Missing variable is:<br>
CMAKE_C_COMPILER<br>
CMake Error: Could not find cmake module<br>
</div>file:C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/build_nmake/CMakeFiles<br>
<div class="im">/CMakeCCompiler.cmake<br>
CMake Error: Error required internal CMake variable not set, cmake may<br>
be not be built correctly.<br>
Missing variable is:<br>
CMAKE_CXX_COMPILER_ENV_VAR<br>
CMake Error: Error required internal CMake variable not set, cmake may<br>
be not be built correctly.<br>
Missing variable is:<br>
CMAKE_CXX_COMPILER<br>
CMake Error: Could not find cmake module<br>
</div>file:C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/build_nmake/CMakeFiles<br>
<div class="im">/CMakeCXXCompiler.cmake<br>
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage<br>
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage<br>
-- Configuring incomplete, errors occurred!<br>
------------------------------------------------------------------------<br>
------------------<br>
</div><div class="im">&gt; For some reason cmake is unable to find nmake in  your PATH.  Perhaps<br>
&gt; your PATH variable has something funny in it.  What is the contents of<br>
&gt; the PATH variable in that shell?<br>
&gt;<br>
</div>PATH=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program<br>
Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft<br>
Visual Studio<br>
9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\M<br>
icrosoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual<br>
Studio 9.0\VC\VCPackages;C:\Program Files\\Microsoft<br>
SDKs\Windows\v6.0A\bin;C:\Program<br>
Files\Ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem<br>
;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program<br>
Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program<br>
Files\Intel\DMIX;c:\Program Files\Microsoft SQL<br>
Server\90\Tools\binn\;C:\Program Files\GNU\WinCvs 1.2;C:\<br>
PROGRA~1\Tcl\bin;C:\Program Files\Tcl\bin;&quot;C:\Program Files\Microsoft<br>
Visual Studio 9.0\VC\bin&quot;;C:\Program<br>
Files\xerces-c-bin_3_0_1\bin;C:\cygwin\bin;C:\TTCNToolbox\ttcn\bin;C:\Wo<br>
rk\PCT_LTE\Hercules\bin;C:\Program Files\Micro<br>
soft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT;C:\Program<br>
Files\CMake 2.8\bin;C:\TTCNToolbox\ttcn\bin;C:\Program<br>
Files\Anritsu\Perl\bin;C:\Program Files\Microsoft Visual Studio<br>
9.0\Common7\IDE;C:\Program Files\Micros<br>
oft Visual Studio 9.0\Common7\Tools;<br>
<font color="#888888"><br>
-Vikas<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>