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

Olumide 50295 at web.de
Thu Dec 6 00:38:51 EST 2007


Bill Hoffman wrote:
>> I'm trying to generate a Unix style (or NMake) Makefile that I can use 
>> to port my visual studio project to eclipse. I've tried running cmake 
>> on the project directory with the -G"Unix Makefiles" and -G"NMake 
>> Makefiles" option, but its not working -- I'm getting lots of errors. 
>> Apparently, I'm missing a number of variables. How can I set these 
>> variables? I'd still like to use the Microsoft compiler *but* within 
>> the eclipse environment.
> 
> You need to setup the MS compile to work from the command line. The easy 
> way is to run the visual studio command prompt from the start menu under 
>  visual studio tools.  Then run cmake from that shell, and it should work.

Thanks Bill.

Do you mean I should start the command prompt and run devenv or 
something like that? I dont understand what you mean by "run the visual 
studio command prompt from the start menu under visual studio tools". Am 
I to launch the command shell from/within visual studio?


More information about the CMake mailing list