Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to stop dependency propagation on unmodified generated targets
From: Pavel Machyniak (machyniak_at_[hidden])
Date: 2012-05-18 06:26:14

I found the workaround, but generation part is not using target. So this
is not correct answer to my question.

It has some drawbacks, but it works:
### jamfile.jam ###
SHELL " gen.h" ;
exe test : test.cpp ;

Now generation is done each time jamfile is loaded/executed.
 - now the output is generated in source directory, what is usually not
 - if the generated output is put to some other directory:
  - it must be created first
  - targets that use the generated file must know where to find it (no
usage requirements propagation)

Pavel Machyniak

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