fix conditional nesting botch-up in RES_FILE construction
it makes no sense to test for OBJECTS_DIR emptiness when we are going to use DESTDIR instead. Change-Id: I0f7115fc8a9fe2a996417d5f50bd0165773129fa Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
6bb69b9b0e
commit
a06f37c075
@ -515,12 +515,12 @@ void Win32MakefileGenerator::processRcFileVar()
|
||||
|
||||
resFile.replace(".rc", Option::res_ext);
|
||||
project->values("RES_FILE").prepend(fileInfo(resFile).fileName());
|
||||
if (!project->values("OBJECTS_DIR").isEmpty()) {
|
||||
QString resDestDir;
|
||||
if (project->isActiveConfig("staticlib"))
|
||||
resDestDir = project->first("DESTDIR").toQString();
|
||||
else
|
||||
resDestDir = project->first("OBJECTS_DIR").toQString();
|
||||
QString resDestDir;
|
||||
if (project->isActiveConfig("staticlib"))
|
||||
resDestDir = project->first("DESTDIR").toQString();
|
||||
else
|
||||
resDestDir = project->first("OBJECTS_DIR").toQString();
|
||||
if (!resDestDir.isEmpty()) {
|
||||
resDestDir.append(Option::dir_sep);
|
||||
project->values("RES_FILE").first().prepend(resDestDir);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user