Boost logo

Boost-Build :

From: João Luís Pinto (joaoluispinto_at_[hidden])
Date: 2008-09-01 10:34:29


Hello,

I'm having two problems with setting alternatives based on toolsets in
a multi-platform and toolset project with:

Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.16

The first problem is that, with Jamfile.jam such as:

lib system_monitor
    : src/processlistwindows.cxx
    : <define>MYDEF
    : <toolset>msvc
    ;

lib system_monitor
    : src/processlistlinux.cxx
    : <define>MYDEF
    : <toolset>gcc
    ;

I get the following error running 'bjam -q --toolset=gcc':

~/usr/share/boost-build/build/feature.jam:432: in
feature.validate-value-string from module feature
error: "msvc" is not a known value of feature <toolset>
error: legal values: "gcc"
/usr/share/boost-build/build/property.jam:267: in validate1 from module property
/usr/share/boost-build/build/property.jam:290: in property.validate
from module property
/usr/share/boost-build/build/property-set.jam:375: in
property-set.create-with-validation from module property-set
/usr/share/boost-build/build/targets.jam:1526: in
targets.main-target-default-build from module targets
/usr/share/boost-build/tools/builtin.jam:533: in lib from module builtin

My user-config.jam is all commented out and I'm running the build on a
Linux machine.

The second problem is that I want to have certain libraries that are
part of the project to be considered dependencies (and therefore
built) only on certain platforms. I'm using <toolset> like this:

alias source_list : platform_a_sourcelist : <toolset>msvc ;

alias source_list ;

lib mylib : source_list : <define>MYDEF ;

But I am having no sucess.

Any ideas?

Many thanks,

João


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