Boost logo

Boost-Build :

Subject: Re: [Boost-build] Want to run configure to generate header
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-11-11 06:25:48


Daniel Lidström wrote:

> Hello,
>
> I have a project that needs to run configure before being built. This should generate the header
> config.h. Here's how I tried to solve this:
>
> alias config-header
> : config.h
> ;
>
> make config.h
> :
> : make-configure
> ;
>
> actions make-configure
> {
> ./configure
> }
>
> lib sbg_fltk
> : config-header
> src/Fl_Double_Window.cxx
> .
> .
> .
> ;
>
> This doesn't run configure though, and Fl_Double_Window.cxx fails to compile.
> Any ideas on what I should do?

Daniel,
try

        <implicit-dependency>config-header

in requirements. Because '.h' files are not actually used when building 'lib'
at all, the 'config-header' in sources is ignored.

HTH,
Volodya


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