Boost logo

Boost-Build :

From: John Maddock (john_at_[hidden])
Date: 2004-09-10 05:21:49


I've found vc8-tools.jam quite hard to use with the VC8 express edition: in
particular the express edition does not define the environment variable
MSVCDir (but does set VCINSTALLDIR), nor is it installed in the default
location that the jamfile uses, the following fix allows the jamfile to work
"out the box" from an express edition command prompt:

if ! $(MSVCDir)
{
- ProgramFiles ?= $(PROGRAMFILES) ;
- VC80_ROOT ?= $(ProgramFiles:J=" ")"\\Microsoft Visual Studio .NET
Whidbey\\VC7" ;
- VC_TOOL_PATH = "$(VC80_ROOT)"\\bin\\ ;
- VC_SETUP = "CALL \"$(VC_TOOL_PATH)VCVARS32.BAT\" >nul" ;
+ if $(VCINSTALLDIR)
+ {
+ VC80_ROOT ?= $(VCINSTALLDIR) ;
+ VC_TOOL_PATH = "$(VC80_ROOT)"\\bin\\ ;
+ VC_SETUP = "CALL \"$(VC_TOOL_PATH)VCVARS32.BAT\" >nul" ;
+ }
+ else
+ {
+ ProgramFiles ?= $(PROGRAMFILES) ;
+ VC80_ROOT ?= $(ProgramFiles:J=" ")"\\Microsoft Visual Studio .NET
Whidbey\\VC7" ;
+ VC_TOOL_PATH = "$(VC80_ROOT)"\\bin\\ ;
+ VC_SETUP = "CALL \"$(VC_TOOL_PATH)VCVARS32.BAT\" >nul" ;
+ }
}
+
VC_PDB_NAME = vc80 ;

OK to apply?

Thanks,

John.

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk