[CMake] Errors trying to use CMake to generate NMake makefiles.

Hal Canary hal at cs.unc.edu
Wed Jun 19 14:27:01 EDT 2013


Here's exactly what I did:

[run cmd.exe]

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat"

mkdir tmpd

cd tmpd

git clone git://gitorious.org/cmaketester/cmaketest.git

cl /EHsc cmaketest\cmaketest.cxx

link cmaketest.obj

cmaketest.exe                          [<-- this succeeds]]

mkdir build-cmaketest

cd build-cmaketest

cmake -G "NMake Makefiles" ..\cmaketest  [<-- this fails]

set CXX=cl.exe

set CC=cl.exe

cmake -G "NMake Makefiles" ..\cmaketest  [<-- this also fails]


On Wed, Jun 19, 2013 at 1:04 PM, Bill Hoffman wrote:
> Are you sure?
>
> Can you type:
> cl
>
> You can also set CC and CXX to be cl for the compiler.  But it looks like cl
> was not in your PATH.  Are you running the VS command prompt?


More information about the CMake mailing list