Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-09-13 04:05:12

Vladimir Prus wrote:

> Would you mind being a little bit more explicit in your Jamfile? Something
> like:
> lib f77blas : : <search>/usr/local/lib ;
> lib atlas : : <search>/usr/loca/lib <use>f77blas ;
> should give you the right order. What do you think?

The problem is that my project actually uses a variable BLAS_LIBS and
BLAS_LIB_PATH to know where and which blas is installed on the local
machine. So the user needs to set these two variables in his
user-config.jam like this:

modules.poke : BLAS_LIBS : f77blas atlas ;
modules.poke : BLAS_LIB_PATH : /usr/local/lib ;

And then in my project's Jamfile I use these variables like:

BLAS_LIBS = [ modules.peek : BLAS_LIBS ] ;
BLAS_LIB_PATH = [ modules.peek : BLAS_LIB_PATH ] ;

lib $(BLAS_LIBS) : : <search>$(BLAS_LIB_PATH) ;

project mine
: requirements

Now, generally the blas library is called 'libblas.a' but atlas for
instance consists of multiple libraries. So I don't know in advance if
there will be multiple or just one library ;0(


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