View Full Version : qmake install only installs debug targets

15th May 2014, 11:12

I am under windows with Qt5.
I have projects looking like this:


I would like to build both debug and release versions.
Everything goes fine until I try to install the targets.
I only want to install the release targets.

From MyProject1 folder, the nmake release-install command achieves this.

The problem I have is that from the top folder (MyProjects), the release-install target doesn't exist in the Makefile; and the nmake install command only installs the debug targets.

I see in the terminal that this command actually calls Makefile.debug install.

Do you have any idea on how to do such a thing ?
Maybe trying to set the release mode as default, but I don't know how to do it.

Thanks for your answers.

16th May 2014, 17:07
I only want to install the release targets.

Well, as a matter of fact, I would be pleased with installing both debug and release targets.

For the moment, nmake install only copies debug targets.
The only way I found to install the release targets is to set my .pro files with CONFIG += release; unfortunately, (and logically) no debug builds occur with this configuration.

I'm a bit stuck.

Thanks for your thoughts.

16th May 2014, 20:12
Have you tried using CONFIG += debug_and_release?

19th May 2014, 17:58
Yes, that's currently my option.

Just in case it matters, I'm building libraries.
My config in the .PRO file,

CONFIG += dll debug_and_release