diff --git a/Jamfile.v2 b/Jamfile.v2 index 949e7033cd..dade40a373 100644 --- a/Jamfile.v2 +++ b/Jamfile.v2 @@ -282,6 +282,22 @@ rule tag ( name : type ? : property-set ) # Install to system location. +local install-requirements = + boost + ; +if $(layout-versioned) +{ + install-requirements += boost-$(BOOST_VERSION_TAG)/boost ; +} +if [ modules.peek : NT ] +{ + install-requirements += C:/Boost ; +} +else if [ modules.peek : UNIX ] +{ + install-requirements += /usr/local ; +} + local headers = [ path.glob-tree boost : *.hpp *.ipp *.h *.inc : CVS ] [ path.glob-tree boost/compatibility/cpp_c_headers : c* : CVS ] @@ -294,8 +310,7 @@ else { header-subdir = boost ; } # Complete install package.install install - : boost - $(header-subdir) + : $(install-requirements) : : libs/$(libraries)/build : $(headers) @@ -321,7 +336,7 @@ alias build_all : libs/$(libraries)/build ; rule boost-install ( libraries * ) { package.install install - : /boost//install-headers + : /boost//install-headers $(install-requirements) : # No binaries : $(libraries) : # No headers, it's handled by the dependency @@ -337,8 +352,6 @@ rule boost-install ( libraries * ) } } - - # Make project ids of all libraries known. for local l in $(libraries) { diff --git a/tools/build b/tools/build index ad5521485b..025df84f89 160000 --- a/tools/build +++ b/tools/build @@ -1 +1 @@ -Subproject commit ad5521485b0050d6fd4611ce97dd3ab0d65fe52f +Subproject commit 025df84f89befee2eccd24bb3aa5304d7550b10a