Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Custom Build Settings in Qt Creator
Code_ReaQtor last edited by
As we always encounter in Qt Creator, the build settings for a certain version are separated into debug and release version, e.g. Qt 4.8.3 (mingw) Debug, Qt 4.8.3 (mingw) Release, Qt 4.8.3 (msvc2008) Debug,... etc. You can build your app in debug or release but you cannot do both at the same time.
In qmake, you can do this "Config += debug_and_release" w/c builds both debug and release. e.g. a library project will produce mylib.dll and mylibd.dll
In short I want to do the same thing in Qt Creator. Although there is a feature where you can clone a build setting, I can't configure/edit it in the way I want it to be.
Somebody knows how to do this? Thanks in advance.
Jeroentjehome last edited by
Hi there, please move this post to the tools section!
The reason for not doing a debug and release build in Qt Creator is that it takes twice as long as a normal build. We consider it important to have as fast turn-around times as possible during development, so we try to keep compile times to the minimum.
You are free to add another build configuration (or change an existing one) to do debug and release builds by changing the qmake step to do that. I think the simplest way to do so is to add "CONFIG+=debug_and_release" as an argument.