|
Boost-Build : |
Subject: [Boost-build] conditional link dependent on a define
From: Avi Bahra (avibahra_at_[hidden])
Date: 2012-10-23 12:10:22
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 ?
Ta, Avi
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