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

Chauhan, Vikas vikas.chauhan at anritsu.com
Thu Jan 14 06:11:36 EST 2010


 

 

________________________________

From: ceej at lambda.nu [mailto:ceej at lambda.nu] On Behalf Of Chris Hillery
Sent: 13 January 2010 03:00
To: Bill Hoffman
Cc: Chauhan, Vikas; cmake at cmake.org
Subject: Re: [CMake] using cmake on windows - query on existing targets

 

On Tue, Jan 12, 2010 at 2:04 PM, Bill Hoffman <bill.hoffman at kitware.com>
wrote:


What version of the compiler did you install?  The commercial versions
of the compiler have a VS command prompt under the tools menu that you
can use to create a shell with the correct env to run the compiler.

The same is true for the free Visual Studio Express (which somewhat
confusingly is NOT identified as "the free VC compiler" by CMake, but it
all works fine).

Ceej
aka Chris Hillery

 

I am using Visual Studio 2008 Standard edition. Unfortunately it still
does not work from VS command prompt. I get the following error:

------------------------------------------------------------------------
-------------------------------

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

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/Mappe
<file:///C:\Work\PCT_LTE\Hercules\CID\Mappe> 

rGenerator/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/Mappe
<file:///C:\Work\PCT_LTE\Hercules\CID\Mappe> 

rGenerator/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!

------------------------------------------------------------------------
--------------------------------------

 

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


More information about the CMake mailing list