summaryrefslogtreecommitdiff
path: root/Jamroot
diff options
context:
space:
mode:
authorAlexander Grund <Flamefire@users.noreply.github.com>2020-09-24 16:42:03 +0200
committerGlen Fernandes <glen.fernandes@gmail.com>2020-10-11 22:08:47 -0400
commit62cdb02a0782db2d1ce915b51aeaaadfd628b2c4 (patch)
tree2b3d2078546c928ed2cde657b6e2a47e596b208e /Jamroot
parent0ef0128f0b4f9885ac97e2b1c81381a2d1e19d5c (diff)
downloadboost-62cdb02a0782db2d1ce915b51aeaaadfd628b2c4.tar.gz
Make config module availabe to subprojects
This makes it possible to `import config` instead of using a relative path requiring package managers to patch the files.
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot3
1 files changed, 3 insertions, 0 deletions
diff --git a/Jamroot b/Jamroot
index dbce8c6d8a..de86e34f37 100644
--- a/Jamroot
+++ b/Jamroot
@@ -294,6 +294,9 @@ if [ path.exists $(BOOST_ROOT)/libs/wave/tool/build ]
use-project /boost/libs/wave/tool : libs/wave/tool/build ;
}
+# Allow subprojects to simply `import config : requires ;` to get access to the requires rule
+modules.poke : BOOST_BUILD_PATH : $(BOOST_ROOT)/libs/config/checks [ modules.peek : BOOST_BUILD_PATH ] ;
+
# Make the boost-install rule visible in subprojects
# This rule should be called from libraries' Jamfiles and will create two