[CMake] Newbie question: cmake does not have nmake generator

Bill Hoffman bill.hoffman at kitware.com
Wed Sep 9 19:23:41 EDT 2009


David Aldrich wrote:
> Hi
>  
> I am new to cmake. I have installed cmake (using 
> cmake-2.6.4-win32-x86.exe) on my Win XP platform, on which I also have 
> Visual Studio 2005 Prof and Visual Studio 2008 Express installed.
>  
> I am trying to build PLplot, whose instructions tell me to run:
>  
> cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=install ..
>  
> but I get:
>  
> CMake Error: Could not create named generator
> -- Check for working C compiler: gcc
> -- Check for working C compiler: gcc -- broken
> The C compiler "gcc" is not able to compile a simple test program.
>  
> It appears that cmake only knows about the unix generator:
>  
> C:\plplot-5.9.5\buildnmake>cmake --help
> [snip]
> The following generators are available on this platform:
>   Unix Makefiles              = Generates standard UNIX makefiles.
>  
> I have run Visual Studio file vcvars32.bat
>  
> How can I install the nmake and Visual Studio 8 generators please?
> Best regards
> David
>  
My guess is you are using the cygwin built CMake, use the windows CMake 
from www.cmake.org.

-Bill




More information about the CMake mailing list