Boost logo

Boost-Build :

Subject: Re: [Boost-build] Lib rule does not seem to work
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-08-09 17:00:18


AMDG

On 08/06/2015 02:53 PM, Klemens Morgenstern wrote:
>
> project
> : source-location ./src
> : requirements
> <include>$(boost_path)/include/boost-1_58
> <include>./include
> <search>$(boost_path)/lib

I suspect that this <search> is the
source of the problem. It should
be <library-path>. <search> is used
to set the location of a binary library. e.g.

lib json_backend : : <search>/usr/local/lib ;

This causes the lib rule to think that your
source is is the library.

> <cxxflags>-std=c++1y
> <link>static
> ;
>
> lib json_backend : mw/json_test_backend.cpp : <debug-symbols>on ;
> lib gdb_backend : mw/gdb_test_backend.cpp : <debug-symbols>off ;
>
> install backends : json_backend gdb_backend ;
>

In Christ,
Steven Watanabe


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