[Qt-creator] Makefile.Debug is used for Release build
David Ching
dc at remove-this.dcsoft.com
Mon Oct 5 06:47:37 CEST 2009
Qt Creator 1.2.1 on Windows
Building project using Qt 4.5.3
1. I have loaded a projects.pro which contains a SUBDIRS project:
---
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += mylib/mylib.pro \
myapp/myapp.pro
---
2. I set it to build the Release configuration by using the menu: Build |
Set Build Configuration | Release
3. I start the build using the menu: Build | Rebuild Project "projects".
First, mylib is built. The Compile output window shows:
cd mylib\ && "C:\Program Files\Microsoft Visual Studio
8\VC\BIN\nmake.exe" -f Makefile
"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
Makefile.Debug
This is incorrect; Makefile.Debug is used, and Makefile.Release should have
been used.
4. Then myapp is built. The Compile output window shows:
cd myapp\ && "C:\Program Files\Microsoft Visual Studio
8\VC\BIN\nmake.exe" -f Makefile.myapp
"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
Makefile.mypp.Release
This time, the release makefile is correctly used.
What causes the .Debug makefile to be used instead of the .Release one? The
wrong one is being used, but only for one of the projects. If it were a
configuration issue, wouldn't the wrong one be used for both of the
projects?
Thanks,
David
More information about the Qt-creator-old
mailing list