Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-22 16:22:53

Daniel Schlyder <daniel_at_[hidden]> writes:

> Using BBv1, how can I add a lib or cpp file only to debug build sources?
> template foo : <debug><lib>bar ;
> gives the error "unknown suffix" and
> template foo : <debug>bar.cpp ;
> gives the error "don't know how to make".
> I thought variants would be the answer, but it appears you cannot add sources
> to them.

Not in BBv1. Your best bet is to use a #define in the variant to
#ifdef out the file contents.

BBv2 supports this better; sorry.

Dave Abrahams
Boost Consulting

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