[Qt-interest] qmake: debug_and_release uses release target name for debug

Alexander Poddey alexander.poddey at gmx.net
Sat Aug 22 10:47:36 CEST 2009


Hi all,

following the manual, I Use

 CONFIG += qt debug_and_release

 CONFIG(debug, debug|release) {
     TARGET = debug_binary
 } else {
     TARGET = release_binary
 }

make debug operates in debug dir but uses release_binary as TARGET:

g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.5.2/lib -o release_binary 
debug/main.o

whay that?

another question:
using 
CONFIG += qt
CONFIG += debug_and_release
seems to miss the qt part and therefore produces compile errors such as
error: QCoreApplication: No such file or directory

shouldn't both variants be equivalent?



thx 
alex



More information about the Qt-interest-old mailing list