Boost logo

Boost-Build :

Subject: Re: [Boost-build] Using unixODBC and msodbc
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-09-25 02:24:11


Hi Daniel !

On Wednesday 24 September 2008 17:14:36 Daniel Griffin wrote:
> And works only on windows, how do I change it to additionally work on
> Linux/Mac? How do I conditionally change what libraries are linked based on
> platform?

Take a look at the documentation about conditions and target alternatives:

http://www.boost.org/doc/libs/1_36_0/doc/html/bbv2/tutorial.html#bbv2.tutorial.conditions

You can make plattform-alternatives based on target-os (using <target-
os>windows or compile (using<toolset>msvc or <toolset>gcc

And read about "alias"
http://www.boost.org/doc/libs/1_36_0/doc/html/bbv2/tasks.html#bbv2.tasks.alias

This BB feature is _very_ powerfull.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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