|
Boost-Build : |
From: Nicola Musatti (Nicola.Musatti_at_[hidden])
Date: 2006-11-20 09:36:35
Hallo,
I'm trying to re-enable the possibility for Boost.Serialization to make use of
an external Spirit installation. This is useful because some compilers are not
compliant enough to compile the current Spirit, but can compile Serialization
with Spirit 1.6.x . It is still possible to replace the spirit directory under
boost, but using an external one is a cleaner solution.
For this to work I need to be able to specify the include directory for Spirit
*before* $BOOST_ROOT ; is this possible?
What I have now is something like
local SPIRIT_ROOT = [ modules.peek : SPIRIT_ROOT ] ;
if ( $(SPIRIT_ROOT) )
{
SPIRIT_INCLUDE = "<include>$(SPIRIT_ROOT)" ;
}
lib boost_serialization
: $(SOURCES).cpp
: <toolset>msvc:<cxxflags>/Gy
<link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
$(SPIRIT_INCLUDE)
:
: <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
;
but this causes the $(SPIRIT_ROOT) directory to be specified *after* $BOOST_ROOT.
Thank you,
Nicola Musatti
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