|
Boost-Build : |
Subject: Re: [Boost-build] conditional link dependent on a define
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-10-23 13:10:27
AMDG
On 10/23/2012 09:10 AM, Avi Bahra wrote:
> How do I link a particular library dependent on a define:
>
>>From the docs:
> lib network : network.cpp
> : <link>shared:<define>NEWORK_LIB_SHARED
> <variant>release:<define>EXTRA_FAST
> ;
>
> However what I want: ( which fails with: error: properties found in
> the 'sources' parameter)
>
> lib pthread ;
> exe network : network.cpp
> : <define>MULTI_THREADED:<link>:pthread
> ;
>
> i.e if MULTI_THREADED is defined link with the pthread library.
>
> is this possible in bjam ?
>
You can't use free features in conditional properties.
What you can use is
exe network : network.cpp
: <threading>multi:<library>pthread
;
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