Boost logo

Boost-Build :

Subject: Re: [Boost-build] include order
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2014-04-01 04:21:58


On 01.04.2014 10:10, Vladimir Prus wrote:
> On 01.04.2014 11:58, Karsten Ahnert wrote:
>> On 01.04.2014 09:27, Vladimir Prus wrote:
>>> On 01.04.2014 11:08, Karsten Ahnert wrote:
>>>> Hi,
>>>>
>>>> how can I specify the order of include path passed to the compiler?
>>>>
>>>> My Jamroot specfies the requirements as
>>>>
>>>> project : requirements
>>>> <include>./include
>>>> <include>$(BOOST_ROOT)
>>>> ;
>>>>
>>>> If I build the project from the project root directory the include
>>>> order
>>>> is reversed. If I build a subpart of the project inside the tree the
>>>> order is correct. Any ideas how I can fix this such that the order is
>>>> always as specified in the Jamroot?
>>>
>>> Hi Karsten,
>>>
>>> do this answer your question:
>>>
>>>
>>> http://www.boost.org/doc/libs/1_55_0/doc/html/bbv2/faq.html#bbv2.faq.proporder
>>>
>>
>> In principle yes, but unfortunately this does not work. I have changed
>> my properties to:
>>
>> project : requirements
>> <include>./include&&$(BOOST_ROOT)
>> ;
>
> What target is built with wrong includes (and what's the exact command
> line) and where can I
> look at that target definition?

The project is here:

https://github.com/headmyshoulder/odeint-v2/tree/boost_integ

If I build the project from the project root, I get errors due to the
wrong include order. When I build the tests in the test directory the
include order works is ok and everything builds correctly.

>
> - Volodya
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build


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