Boost logo

Boost-Build :

Subject: Re: [Boost-build] Conditional Requirements for Library targets
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-03-20 19:51:03


AMDG

On 03/19/2017 01:34 PM, Douglas Capeci via Boost-build wrote:
>
> I have defined in my jamfile a library target that I want to include some extra source requirements when it is built as a shared library than when built as a static archive. To do this, I would like to utilize the conditional requirement capability of Boost build on the <link> feature as follows:
>
> lib util : $(utils-source) : <link>shared : <source>$(shlib-source) <source>/external//libz ;
>

  You have too many spaces. The ':' is also an argument
separator. A conditional requirement should be
<link>shared:<source>$(shlib-source)

> However, this does not work. The rule is not invoked for building a static version of the library. It is only invoked for building a shared library. Here are some questions:
>

In Christ,
Steven Watanabe


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