$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-build] Conditional targets not resolving properly
From: Konstantin Litvinenko (to.darkangel_at_[hidden])
Date: 2009-09-16 04:43:11
Johan Larsson пиÑеÑ:
> project A
> : requirements
> <link>static
> <toolset>gcc:<cxxflags>-DNO_SMART
> : usage-requirements
> <linkflags>-lA
> <include>..
> ;
>
> alias commonsources
> : (snip)
> ;
>
> lib libA
> : commonsources
> SOURCE.cpp
> ;
>
> lib libA
> : commonsources
> : <toolset>gcc
> ;
>
Try the following:
====================================
alias src : SOURCE.cpp ;
alias src : : <toolset>gcc ;
explicit src ;
lib libA
:
[ glob ../src/*.cpp ] # place here you common sources
src
:
<link>static
<toolset>gcc:<cxxflags>-DNO_SMART
:
:
<include>..
;
==================================
You don't need to specify any link flags to link with libA, bjam can
handle this for you.
Notice: I've remove 'project' section.