Boost logo

Boost-Build :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-11-13 10:07:27


I'm trying to write a utility rule that add some params before the
actual rule gets called. Example:

In "a/util.jam":

rule my-unit-test ( name : sources + )
{
return [ unit-test $(name) : $(sources) <lib>test/foo ] ;
}

and in "a/b/Jamfile":

include ../util.jam ;
my-unit-test bar : bar.cpp ;

This works but the test library foo is searched in "a/b/foo" and I
want it to be seached in "a/foo". So, how can specify the path the
test/foo relative to the Jamfile "util.jam" and not relativ to the
Jamfile where the rule is used?

TIA, Markus

 


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