qmake-based buildsystem

Dirk Hohndel dirk at hohndel.org
Tue Oct 8 10:08:03 UTC 2013


On Tue, 2013-10-08 at 09:36 -0700, Thiago Macieira wrote:
> On terça-feira, 8 de outubro de 2013 09:22:05, Dirk Hohndel wrote:
> > Is there a way to ask for the user to configure those if they can't be
> > detected?
> 
> Only by failing to compile.
> 
> qmake isn't made for detection. It's made for declaring what you want.
> 
> In Qt 5, there are a few detection mechanisms. It's possible to tell qmake to 
> run qmake on another project and report whether that passed or failed. Now, I 
> could look at whether backporting the feature is possible -- that is, if it 
> comes mostly from qmake scripts as opposed to changes in the tool's own source 
> code. But I'd rather not spend time on that.

And I really don't want us to require a special qmake.

> As a stopgap solution, we could use something like:
> 
> !system("$$QMAKE_C -c conftest-libzip.c") : error("Can't find libzip!")

That seems much better - and the error could tell people which variable
to edit in which file :-)



/D



More information about the subsurface mailing list