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

Chauhan, Vikas vikas.chauhan at anritsu.com
Fri Jan 15 05:50:20 EST 2010


Hi David/Bill,

 

I removed the extra set of "". I am not sure how they came into :-(

But, still the problem persists, following is the output:

C:\Work\PCT_LTE\Hercules\CID\MapperGenerator\build_nmake>cmake ../
-G"NMake Makefiles" --trace

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!

 

C:\Work\PCT_LTE\Hercules\CID\MapperGenerator\build_nmake>path

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\Microso

ft 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\Microsof

t Visual Studio 9.0\Common7\Tools;

 

C:\Work\PCT_LTE\Hercules\CID\MapperGenerator\build_nmake>

 

 

________________________________

From: David Cole [mailto:david.cole at kitware.com] 
Sent: 14 January 2010 17:58
To: Chauhan, Vikas
Cc: Bill Hoffman; cmake at cmake.org
Subject: Re: [CMake] using cmake on windows - query on existing targets

 

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100115/5dc71d65/attachment.htm>


More information about the CMake mailing list