[Interest] qmake replaces 'debug'/'release' in DESTDIR

Benjamin TERRIER b.terrier at gmail.com
Wed Jun 21 14:35:42 CEST 2017

Hi everyone,

I have encountered something unexpected with qmake on Windows.
If DESTDIR contains either "release" or "debug", qmake will replace
it with the one matching the actual build configuration.

For instance if I have: "DESTDIR = foo/release/bar"
and I run: "qmake CONFIG+=debug"
the actual DESTDIR in the generated Makefile will be "foo/debug/bar".

As far as I know it looks like it is caused by:

Also it doesn't happen anymore if I do not do and "debug_and_release"
build on Windows
and it never happens on Linux (with or without "debug_and_release").

It looks like a bug to me. Is this behavior expected for some use cases?


Benjamin Terrier

More information about the Interest mailing list