From 025df84f89befee2eccd24bb3aa5304d7550b10a Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 28 Oct 2006 15:22:17 +0000 Subject: [PATCH] Restore BBv1 install functionality of installing to c:/Boost by default. [SVN r35761] --- v2/tools/package.jam | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/v2/tools/package.jam b/v2/tools/package.jam index e44f851bf..1bbf4a42d 100644 --- a/v2/tools/package.jam +++ b/v2/tools/package.jam @@ -1,4 +1,5 @@ # Copyright (c) 2005 Vladimir Prus. +# Copyright 2006 Rene Rivera. # # Use, modification and distribution is subject to the Boost Software # License Version 1.0. (See accompanying file LICENSE_1_0.txt or @@ -53,9 +54,11 @@ rule install ( name : requirements * : binaries * : libraries * : headers * ) install-header-subdir ?= "" ; requirements = [ property.change $(requirements) : ] ; - # First, figure out all locations. - local prefix = [ option.get prefix : "" ] ; - + # First, figure out all locations. Use the default if no prefix option given. + local prefix = [ option.get prefix : + [ property.select : $(requirements) ] ] ; + requirements = [ property.change $(requirements) : ] ; + # Or some likely defaults if neither is given. if ! $(prefix) { if [ modules.peek : NT ] { prefix = C:\\$(name) ; }