[CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

Bill Hoffman bill.hoffman at kitware.com
Thu Dec 6 17:27:17 EST 2007


Olumide wrote:
>> The command prompt can be found from your start menu: Start Menu -> 
>> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> 
>> Visual Studio 2005 Command Prompt.
>>
>> This will give you a regular windows command prompt with all 
>> environment variables set up in order for you to be able to run the 
>> command-line studio tools (cl, nmake, vcbuild, etc.)
> 
> Thanks.
> 
> 
> I've started the visual studio (.NET 2003) command prompt as you 
> described and typed the commands
> 
> cmake -G"Unix Makefiles" C:\Work\Demo\TestTexturePlugin
> cmake -G"NMake Makefiles" C:\Work\Demo\TestTexturePlugin
> 
> in it, but I still got the errors:
> CMAKE_CXX_COMPILER
> CMake Error: Could not find cmake module file:C:/Program Files/Common 
> Files/System/Mapi/1033/CMakeFiles/CMakeCXXCompiler.cmake
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
> -- Configuring done
> 
> 
Bad compiler installation?   Can you run nmake and cl from that prompt?

-Bill



More information about the CMake mailing list