Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-09-18 18:34:26

John Maddock wrote:
>Victor A. Wagner Jr. wrote:
>>The last change to "Fixed to work with VC8 Express edition" breaks other
>>VC++8.0 installations.
>>It makes the assumption that VCINSTALLDIR actually has a meaning and
>>on all systems (it does not).
> If it doesn't exist then the changes should have had no effect, if it does
> and it's not set to a meaningful value (or there's a leftover from a
> previous version) then we have problems.

[snip stuff about interpreting what the ENV vars all mean]

Perhaps the ENV vars should not be used at all?? Instead we could read
the registry to find the install location, as the cw-tools.jam does. For
example, for vc7.1 one could use:

extends-toolset msvc ;

# singleton variables...
set-as-singleton VC71_ROOT ;

if ! $(MSVCDir)
local vc-ide-root-7.1 = [ W32_GETREG
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.1" :
"InstallDir" ] ;
ProgramFiles ?= $(PROGRAMFILES) ;
VC71_ROOT ?= "$(vc-ide-root-7.1)..\\..\\VC7" ;
VC_TOOL_PATH = "$(VC71_ROOT)\\bin\\" ;
VC_PDB_NAME = vc71 ;

feature native-wchar_t : on off ;

flags vc7.1 CFLAGS : /Op ;
flags vc7.1 C++FLAGS : /Zc:forScope ;
flags vc7.1 C++FLAGS <native-wchar_t>on : /Zc:wchar_t ;

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/ - 102708583/icq

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at