Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to link other static libraries using Boost.Build
From: Juraj Ivanèiæ (juraj.ivancic_at_[hidden])
Date: 2011-11-16 11:19:40


On 16.11.2011. 9:04, au9ustine wrote:

[/snip]

> # Set up the project-wide requirements that everything uses the
> # boost_python library from the project whose global ID is
> # /boost/python.
> project
> : requirements<library>/boost/python//boost_python ;
> project
> : requirements<include>D:/Program\ Files/CGAL-3.9/include ;
> project
> : requirements<include>D:/Program\ Files/CGAL-3.9/auxiliary/gmp/include ;

[/snip]

>
> If there is someone who can help me and/or provide some simple codes
> snippet that can show how to use Boost.Build, I'm quite appriciated
> that.

It seems that linkage of CGAL-vc90-mt-gd.lib is specified via msvc
#pragmas, so it should suffice to provide the library path to the
linker. Try adding:

<library-path>D:/Program\ Files/CGAL-3.9/lib

to the project requirements. You can also specify multiple requirements
in the project rule:

project : requirements
     <library>/boost/python//boost_python
     <include>D:/Program\ Files/CGAL-3.9/include
     <include>D:/Program\ Files/CGAL-3.9/auxiliary/gmp/include
     <library-path>D:/Program\ Files/CGAL-3.9/lib ;

HTH


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