Boost logo

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

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, david.abrahams at, gregod at, cpdaniel at, john at