Boost logo

Boost :

Subject: Re: [boost] "I want everything" should build "out of the box" (on Windows)
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-07-28 07:00:11


Boris Schaeling wrote:

> On Tue, 28 Jul 2009 07:51:36 +0200, KTC <ktc_at_[hidden]> wrote:
>
>> [...]the library is built but not Boost.Graph. Sorry, this time no one
>> told them they need to change Boost.Graph's Jamfile.v2 file with
>> "<find-shared-library>expat" to "<find-shared-library>libexpatwMT" and
>> adding "<define>XML_STATIC".
>
> I have another question: What exactly does <find-shared-library> do? Does
> it automatically define and use a lib target like:
>
> lib xy : : <name>xy <link>shared ;

It's the other way around, actually. <find-shared-library> instructs to link
against named library, so

        <find-shared-library>x

results in

        -lx

on linux (and x.lib on windows). 'shared' means to make sure it's actually
shared.

The 'xy' metatarget declaration you shown above essentially gets
<find-shared-library>xy into build properties of every dependency.

HTH,
Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk