Escape path names in qmake-generated Makefiles.
qmake-generated Makefiles since 4.6 (according to bug report) contain recursive qmake invocations with absolute paths to .pro files, where the absolute paths are not escaped. Task-number: QTBUG-11776 Change-Id: I49772c7d9147efea3bb7b9623c61d92aa0bb6857 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
0e4fac3fbd
commit
ea2c9f764f
@ -2489,7 +2489,7 @@ MakefileGenerator::writeSubTargets(QTextStream &t, QList<MakefileGenerator::SubT
|
||||
//qmake it
|
||||
if(!subtarget->profile.isEmpty()) {
|
||||
QString out = subtarget->makefile;
|
||||
QString in = fileFixify(in_directory + subtarget->profile, FileFixifyAbsolute);
|
||||
QString in = escapeFilePath(fileFixify(in_directory + subtarget->profile, FileFixifyAbsolute));
|
||||
if(out.startsWith(in_directory))
|
||||
out = out.mid(in_directory.length());
|
||||
t << mkfile << ": " << "\n\t";
|
||||
|
Loading…
Reference in New Issue
Block a user