Fix parsing of .qmake.cache Fixes DESTDIR for debug_and_release_targets

Closer again to qmake, ossi won't like it, but this is exactly what
qmake does, even it it looks a little bit strange. He can come up with
a better fix after he is back from vacation.
This commit is contained in:
dt
2009-09-01 15:59:12 +02:00
parent a922accd11
commit f4c10deeb3
2 changed files with 2 additions and 1 deletions

View File

@@ -584,6 +584,7 @@ void Qt4RunConfiguration::updateTarget()
//qDebug()<<"reader didn't contain DESTDIR, setting to "<<baseDir;
m_workingDir = baseDir;
if (reader->values("CONFIG").contains("debug_and_release_target")) {
//qDebug()<<"reader has debug_and_release_target";
QString qmakeBuildConfig = "release";
if (projectBuildConfiguration & QtVersion::DebugBuild)
qmakeBuildConfig = "debug";