Boost logo

Boost-Build :

Subject: [Boost-build] Logical AND for conditions
From: Norbert Wenzel (n_wenzel_at_[hidden])
Date: 2009-12-07 06:22:53


Hello,

I'm sure this is mentioned in the docs, but I didn't find it.

The example from the documentation on page "Conditions and alternatives" describes the situation when you need a specific define to build your library.

lib network : network.cpp
    : <link>shared:<define>NEWORK_LIB_SHARED
    ;

I was wondering, how I would tell BB to only define the NEWORK_LIB_SHARED for windows. I've tried

<target-os>windows:<link>shared:<define>NEWORK_LIB_SHARED

so far, but that didn't work (though it compiled without any error, except the missing define).

I'm sorry for asking a question of which I'm quite sure that it is mentioned in the docs, but as said before, I didn't find it.

thanks,
Norbert

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

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