diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index bd2b15dc517f98924b05e49ba4eca6c7e48c7b1d..dbaac99c706ad3f21cce490ac8b99bd2c5de15c1 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -1571,7 +1571,7 @@ TargetInformation Qt4ProFileNode::targetInformation(ProFileReader *reader) const result.workingDir = QDir::cleanPath(result.workingDir); QString wd = result.workingDir; - if (!reader->contains("DESTDIR") + if ( (!reader->contains("DESTDIR") || reader->value("DESTDIR") == ".") && reader->values("CONFIG").contains("debug_and_release") && reader->values("CONFIG").contains("debug_and_release_target")) { // If we don't have a destdir and debug and release is set