Subject: Re: [Boost-build] Dependent install targets
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2008-12-03 06:58:58
Steven Watanabe wrote:
> Johan Nilsson wrote:
>> - Project A installs a.exe to e.g. /projA/bin/a.exe
>> - Project B installs b.exe to e.g. /projB/bin/b.exe
>> - The latter should also include project A's a.exe target
>> installation to /projB/bin/a.exe
>> Is there a way of doing this by simply referring to a single target
>> defined within project A?
>> I guess it would be possible to explicitly refer to specific targets
>> from project B, e.g. "/projA/src/a/Jamfile//a", but I'd like project
>> A to define what dependent projects gets to install.
> You'll want to override the <location> property.
> Project A, Jamfile.jam:
> install relocatable-install : a : : <location>/projA/bin ;
> Project B, Jamfile.jam:
> alias install : /projA//relocatable-install/<location>/projB/bin ;
> Note that <location> needs to be in the default-build for
> projA//install so that it can be overridden.
Many thanks for the reply, but I can't get it to work. It seems like
target(s) defined under project B are somehow referred to from project A(!).
This is a somewhat edited output from my real project:
C:\users\jni\prj\projectB>bjam -q debug
WARNING: No python installation configured and autoconfiguration
failed. See http://www.boost.org/libs/python/doc/building.html
for configuration instructions or pass --without-python to
suppress this message and silently skip all Boost.Python target
warning: Python location is not configured
warning: the Boost.Python library won't be built
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
error: Unable to find file or target named
error: referred from project at
What is happening here?
"src/apps/guicli/build//guicli" is a target under project "B", but the
message indicates that it is referred to from project "A".
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk