|
Boost-Build : |
Subject: Re: [Boost-build] Errors when using target references to boost libraries
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-09-04 02:46:30
Bob Walters wrote:
> I'm having difficulty referring to targets in the boost library, and
> would appreciate any pointers or help on what I may be doing wrong.
>
> I have an stand-alone project which is dependent on boost. I set up
> this project with its own Jamroot, which is relatively small. I'm
> trying to use the directory//target syntax to refer to libraries in
> the boost project. My goal is that using those targets avoids any
> need to try to
Try to ... what?
>
> <File 'Jamroot':>
>
> import common ;
> import os ;
>
> local BOOST_ROOT = [ os.environ BOOST_ROOT ] ;
>
> alias libboost_serialization :
> $(BOOST_ROOT)/libs/serialization/build//boost_serialization ;
> alias libboost_thread : $(BOOST_ROOT)/libs/thread/build//boost_thread
> ;
> alias libboost_filesystem :
> $(BOOST_ROOT)/libs/filesystem/build//boost_filesystem ;
> alias libboost_system : $(BOOST_ROOT)/libs/system/build//boost_system
> ;
> alias libboost_date_time :
> $(BOOST_ROOT)/libs/date_time/build//boost_date_time ;
Not sure what's happening here, but you could try a slightly different way
of definining the targets:
import common ;
import os ;
path-constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;
use-project /boost : $(BOOST_ROOT) ;
alias libboost_serialization : /boost//serialization ;
... etc ...
HTH / Johan
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