[CMake] using cmake on windows - query on existing targets

David Cole david.cole at kitware.com
Thu Jan 14 12:58:29 EST 2010


Get rid of the quotes in this part of your PATH:
"C:\Program Files\Microsoft
Visual Studio 9.0\VC\bin"

That's probably what's messing it up.... But they shouldn't be there if
you're using the "Vistual Studio command prompt" so the question is: where
did they come from?


HTH,
David


On Thu, Jan 14, 2010 at 12:23 PM, Chauhan, Vikas
<vikas.chauhan at anritsu.com>wrote:

>
>
> > -----Original Message-----
> > From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> > Sent: 14 January 2010 16:19
> > To: Chauhan, Vikas
> > Cc: Bill Hoffman; cmake at cmake.org
> > Subject: Re: [CMake] using cmake on windows - query on existing
> targets
> >
> > Chauhan, Vikas wrote:
> > >
> > >> -----Original Message-----
> > >> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> > >> Sent: 14 January 2010 13:57
> > >> To: Chauhan, Vikas
> > >> Cc: Bill Hoffman; cmake at cmake.org
> > >> Subject: Re: [CMake] using cmake on windows - query on existing
> > > targets
> > >> Chauhan, Vikas wrote:
> > >> -------------------------------------
> > >>> -------------------------------
> > >>> C:\Work\PCT_LTE\Hercules\CID\MapperGenerator\build_nmake>cmake ../
> > > -G
> > >>> "NMake Mak
> > >>> efiles"
> > >>> CMake Error: CMake was unable to find a build program
> corresponding
> > > to
> > >>> "NMake Ma
> > >>> kefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to
> > > select a
> > >>> differe
> > >>> nt build tool.
> > >>
> > >> Do you have nmake in your PATH?
> > >>
> > >> -Bill
> > >>
> > >
> > > Yes, it is present. Following the version of nmake:
> > > Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
> > > Copyright (C) Microsoft Corporation.  All rights reserved.
> > >
> >
> > Can you try this:
> >
> > cmake ../ -G"NMake Makefiles" --trace
> >
> > What is the output?
> >
> The output is:
> ------------------------------------------------------------------------
> ------------------
> Running with trace output on.
> C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/CMakeLists.txt(1):
> cmake_minimum_required(VERSION 2.8 )
> C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/CMakeLists.txt(4):
> project(MapperGenerator )
> C:/Program Files/CMake
> 2.8/share/cmake-2.8/Modules/CMakeNMakeFindMake.cmake(16):
> SET(CMAKE_MAKE_PROGRAM nmake CACHE STRING Program used to build from
> makefiles. )
> C:/Program Files/CMake
> 2.8/share/cmake-2.8/Modules/CMakeNMakeFindMake.cmake(18):
> MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM )
> CMake Error: CMake was unable to find a build program corresponding to
> "NMake Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to
> select a different build tool.
> CMake Error: Error required internal CMake variable not set, cmake may
> be not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake may
> be not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER
> CMake Error: Could not find cmake module
> file:C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/build_nmake/CMakeFiles
> /CMakeCCompiler.cmake
> CMake Error: Error required internal CMake variable not set, cmake may
> be not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake may
> be not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER
> CMake Error: Could not find cmake module
> file:C:/Work/PCT_LTE/Hercules/CID/MapperGenerator/build_nmake/CMakeFiles
> /CMakeCXXCompiler.cmake
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
> -- Configuring incomplete, errors occurred!
> ------------------------------------------------------------------------
> ------------------
> > For some reason cmake is unable to find nmake in  your PATH.  Perhaps
> > your PATH variable has something funny in it.  What is the contents of
> > the PATH variable in that shell?
> >
> PATH=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program
> Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft
> Visual Studio
> 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\M
> icrosoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual
> Studio 9.0\VC\VCPackages;C:\Program Files\\Microsoft
> SDKs\Windows\v6.0A\bin;C:\Program
> Files\Ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
> ;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program
> Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program
> Files\Intel\DMIX;c:\Program Files\Microsoft SQL
> Server\90\Tools\binn\;C:\Program Files\GNU\WinCvs 1.2;C:\
> PROGRA~1\Tcl\bin;C:\Program Files\Tcl\bin;"C:\Program Files\Microsoft
> Visual Studio 9.0\VC\bin";C:\Program
> Files\xerces-c-bin_3_0_1\bin;C:\cygwin\bin;C:\TTCNToolbox\ttcn\bin;C:\Wo
> rk\PCT_LTE\Hercules\bin;C:\Program Files\Micro
> soft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT;C:\Program
> Files\CMake 2.8\bin;C:\TTCNToolbox\ttcn\bin;C:\Program
> Files\Anritsu\Perl\bin;C:\Program Files\Microsoft Visual Studio
> 9.0\Common7\IDE;C:\Program Files\Micros
> oft Visual Studio 9.0\Common7\Tools;
>
> -Vikas
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100114/5178a47b/attachment.htm>


More information about the CMake mailing list