[CMake] NMake problems when upgrading to CMake 2.6.2

Luke Kucalaba lkucalaba at dsci.com
Thu Oct 9 12:04:18 EDT 2008


Thanks David for the quick response.  Sorry I was having problems with
message size, so I couldn't attach the files I wanted to originally.
I'll inline the vctoolkit.bat file here, which is a small DOS script we
use to setup the MSVC71 toolkit environment:

 

@echo off

 

if "%VCTOOLKIT_VARS_ARE_SET%" == "true" goto done

 

echo --- Setting Microsoft Visual C++ Toolkit 2003 environment
variables... ---

 

rem Load VC++ 7.1 standard environment variables

call vcvars32.bat

 

rem Prepend VC++ toolkit paths

set PATH="%VCToolkitInstallDir%"\bin;%PATH%

set INCLUDE="%VCToolkitInstallDir%"\include;%INCLUDE%

set LIB="%VCToolkitInstallDir%"\lib;%LIB%

 

set VCTOOLKIT_VARS_ARE_SET=true

 

echo Done.

 

:done

 

@echo on

 

 

Here's the output of the requested commands (although "where" is not a
supported dos prompt command in Windows XP, so I couldn't run that one):

 

N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>vctoolkit

--- Setting Microsoft Visual C++ Toolkit 2003 environment variables...
---

Setting environment for using Microsoft Visual Studio .NET 2003 tools.

(If you have another version of Visual Studio or Visual C++ installed
and wish

to use its tools from the command line, run vcvars32.bat for that
version.)

Done.

 

N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>cl

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for
80x86

Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

 

usage: cl [ option... ] filename... [ /link linkoption... ]

 

N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>where cl

'where' is not recognized as an internal or external command,

operable program or batch file.

 

N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>which cl

'which' is not recognized as an internal or external command,

operable program or batch file.

 

N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>echo %PATH%

"C:\Program Files\Microsoft Visual C++ Toolkit 2003\"\bin;C:\Program
Files\Microsoft Visual Studio .NET 2003\Common7\IDE

;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;C:\Program
Files\Microsoft Visual Studio .NET 2003\Common7\T

ools;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual S

tudio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual
Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.N

ET\Framework\v1.1.4322;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;C:\
Program Files\Borland\BDS\4.0\Bin;C:\Program Fil

es\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\CMake
2.6\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sy

stem32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program
Files\doxygen\bin;C:\Program Files\ATI Technologies\ATI

.ACE\Core-Static;C:\Documents and Settings\dsci\My Documents\Borland
Studio Projects\Bpl;C:\Program Files\CMake 2.6\bin;

 

 

Thanks

Luke

 

________________________________

From: David Cole [mailto:david.cole at kitware.com] 
Sent: Thursday, October 09, 2008 12:01 PM
To: Luke Kucalaba
Cc: cmake at cmake.org
Subject: Re: [CMake] NMake problems when upgrading to CMake 2.6.2

 



More information about the CMake mailing list