Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2005-07-19 10:16:13


Hi Claudius,

you can do something like:

lib required_system_library : : <name>greatlib <os>LINUX ;
lib required_system_library : : <name>greatlib_xy <os>MACOSX ;

exe final_exe : source1.cpp required_system_library ;

HTH,

Pedro

----- Original Message -----
From: "hamletclaud" <hamletclaud_at_[hidden]>
To: <jamboost_at_[hidden]>
Sent: Tuesday, July 19, 2005 2:50 PM
Subject: [jamboost] [V2] Choosing library names depending on the OS

> Hi!
>
> Relates to: Boost Build V2
>
> I have an executable which as one of its sources uses a system
> library, so:
>
> ------
> lib required_system_library
> :
> : <name>greatlib
> ;
>
> exe final_exe :
> source1.cpp
>
> required_system_library
> ;
> --------
>
> However, the system library has different names under Linux and
> Darwin. I would thus like to choose the library name (say, "greatlib"
> for Linux, but "greatlib_xy" for Darwin) depending on the OS, much as
> I can easily do for variants, optimization and other factors.
> This must be trivial, but in my stupidity I can't find the solution in
> the documentation nor in the jam source.
>
> Many thanks in advance!
>
> Claudius
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

 


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