From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-12 03:43:21
> > lib X11 : : <name>X11 ;
> > exe hello : hello.cpp : <os>LINUX:<library>X11 ;
> > Let me know if this works for you.
> Thanks for the clarification. I will use the Prebuilt Libraries
> protocol for this case.
> The above works (i.e. the conditional property is in the Requirements
> of "hello", where "hello"->"X11").
> However, what I am trying to do does NOT work, i.e. put the same
> Conditional Property in the Usage Requirements of a library,
> i.e. "myhello"->"mylib"->"X11", where "mylib" has the Usage
> Requirement of library "X11".
> Here is the Jamfile. I have attached the entire use case as well so
> you can try it. Please let me know if this is improper usage or if it
> is a bug.
This is a bug. Thanks for providing simple reproducible test case!
The problem was that conditionals inside usage-requirements were
ignored --- if you had <os>LINUX:<library>X11 then it was passed directly
to dependents, without any processing.
The fix and test for this bug are in CVS now. Your example appears to work as
well. Can you confirm this?
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