Boost logo

Boost-Build :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2008-05-28 12:32:53

Vladimir Prus wrote:
> I think that contrib/boost.jam purports to make installed Boost libraries
> usable in Boost.Build projects, as soon as you tell when they are installed.

Yes, this is true. But it will also search in the default location
of the compiler. On linux this happens to be the include directory
where e.g. debian puts the header files.

This is an example file of how to use it:

import boost ;

boost.use-project ;

project foo ;

exe foo
    : main.cpp
      /boost//headers # this will just pull in the header dirs

Below is from the comments section, decribing the search order:

# This module allows to use the boost library from boost-build projects.
# The location of a boost source tree or the path to a pre-built
# version of the library can be configured from either site-config.jam
# or user-config.jam. If no location is configured the module looks for
# a BOOST_ROOT environment variable, which should point to a boost
# source
# tree. As a last resort it tries to use pre-built libraries from the
# standard
# search path of the compiler.

  _  _  | Roland Schwarz
 |_)(_  | aka. speedsnail
 | \__) | mailto:roland.schwarz_at_[hidden]

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at