|
Boost-Build : |
From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-04-04 15:50:28
Hi,
I am trying to replace some GNU Makefiles with
Boost Build. Due to the way my source tree is (not my design!)
an individual binary is composed of source files scattered
in many directories. With GNU make, we use VPATH
a lot to get around this problem.
I haven't quite figured out how to get this to work
with Boost Build.
VPATH is alluded to here:
http://www.perforce.com/jam/doc/jam.paper.html
but there is no concrete example given in that paper, and
I can't seem to figure this out.
On my system, I took the "hello" example which comes
with Boost build, and moved the hello.cpp file to a directory:
"/tmp/foo1"
I then modified the Jamroot file in "hello" example directory to:
SRC1 = hello.cpp ;
#SEARCH = "/tmp/foo1" ;
SEARCH on $(SRC1) = "/tmp/foo1" ;
exe hello : $(SRC1) ;
However, bjam complains:
error: Unable to find file or target named
error: 'hello.cpp'
error: referred from project at
error: '.'
What am I doing wrong?
Thanks.
-- Craig Rodrigues rodrigc_at_[hidden]
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