[CMake] Abusive warning: "To use the NMake generator, cmake must be run from a shell..."
Bill Hoffman
bill.hoffman at kitware.com
Sat Apr 18 13:23:10 EDT 2009
Tanguy Krotoff wrote:
> Hello
>
> I'm using CMake-2.6.3 and Visual C++ .NET 2003 (MSVC71) on a clean WinXP 32bits.
>
> I get this warning several times at the configure step (my configure
> command: cmake .. -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Debug
> -G "NMake Makefiles")
>
>
> CMake Warning at CMakeLists.txt:12 (project):
> To use the NMake generator, cmake must be run from a shell that can use the
> compiler cl from the command line. This environment does not contain
> INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
> work.
>
>
> I'm sure that my VC++/Windows configuration is OK since the soft
> compiles and the BuildBot that runs CMake and MSVC71 show me this
> environnement before to run the configure step:
>
> INCLUDE=c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\
> LIB=c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\SlikSvn\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\SlikSvn\bin\;C:\Python26;C:\Python26\Scripts;C:\Program
> Files\CMake 2.6\bin;C:\Program Files\NSIS
>
> So I think CMake-2.6.3 is just giving me an abusive warning.
>
> Any hints? is this a bug from CMake?
> I can test using other versions of CMake if needed
>
This is fixed in 2.6.4.
-Bill
More information about the CMake
mailing list