|
Boost-Build : |
Subject: Re: [Boost-build] order of include directories in python extension
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-02-21 13:14:32
John Reid wrote:
> Hi,
>
> The order of include directories in a python extension matters to me. The
>advice here:
> http://lists.boost.org/boost-build/2011/02/24625.php
>
> doesn't seem to be working for me in a python extension. I.e. $(BOOST_ROOT) is
>always before $(TYPE_TRAITS_DIR). Can anyone help?
>
> My targets look like:
>
> #
> # Python interval container library extension
> #
> python-extension _pyicl
> : # sources
> [
> obj pyicl_module
> :
> src/pyicl_module.cpp
> :
> <include>$(TYPE_TRAITS_DIR)&&$(BOOST_ROOT)
> <use>/boost/python//boost_python
> <define>PYICL_MODULE_NAME=_pyicl
> ]
> /boost/python//boost_python
> ;
>
>
>
> Thanks,
> John.
Most likely <use>/boost/python//boost_python gives pyicl_module another
<include>$(BOOST_ROOT) requirement (as one of boost_python target's usage
requirements), which isn't under the ordering control unlike the other one
(<include>XXX&&$(BOOST_ROOT)).
Try removing <use>/boost/python//boost_python to see if it helps. If you need
boost_python's other usage requirements (if any), consider specifying them
manually for pyicl_module.
HTH,
Gevorg
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