diff --git a/Jamroot b/Jamroot index fbe952a..333ac20 100644 --- a/Jamroot +++ b/Jamroot @@ -128,6 +128,7 @@ import sequence ; import xsltproc ; import set ; import path ; +import link ; path-constant BOOST_ROOT : . ; constant BOOST_VERSION : 1.55.0 ; @@ -135,6 +136,23 @@ constant BOOST_JAMROOT_MODULE : $(__name__) ; boostcpp.set-version $(BOOST_VERSION) ; +local all-headers = + [ MATCH .*libs/(.*)/include/boost : [ glob libs/*/include/boost ] ] ; + +for dir in $(all-headers) +{ + link-directory $(dir)-headers : libs/$(dir)/include/boost : . ; +} + +local numeric-headers = + [ MATCH .*libs/numeric/(.*)/include/boost : [ glob libs/*/*/include/boost ] ] ; + +for dir in $(numeric-headers) +{ + link-directory numeric-$(dir)-headers : libs/numeric/$(dir)/include/boost : . ; +} + + project boost : requirements . # Disable auto-linking for all targets here, primarily because it caused @@ -210,8 +228,11 @@ for local l in $(all-libraries) } } -alias headers : : : : . ; -explicit headers ; +alias headers-a : $(all-headers)-headers numeric-$(numeric-headers)-headers : : : . ; +#explicit headers-a ; + +alias headers : headers-a : $(all-headers)-headers numeric-$(numeric-headers)-headers : : . ; +#explicit headers ; # Make project ids of all libraries known. for local l in $(all-libraries)