Boost logo

Boost-Build :

From: Ali Azarbayejani (ali_at_[hidden])
Date: 2003-03-13 17:11:20

Here's a simple question...can I do "Conditional Sources" using the same
syntax as Conditional Properties?


lib mylib : foo.cxx bar.cxx <os>NT:ntbase.cxx ;

expressing that the file "ntbase.cxx" is compiled in only on the NT OS?

Or do I have to do something more convoluted like the following?

Sources = foo.cxx bar.cxx ;
if [ ] = NT
Sources += ntbase.cxx ;
lib mylib : $(Sources) ;



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