Skip to content
Snippets Groups Projects
Commit fa81b861 authored by kh1's avatar kh1
Browse files

Fix building projects if MADDE is on a different drive then the project.

Task-number: QTCREATORBUG-1649
Reviewed-by: ck
parent 2b3db205
No related branches found
No related tags found
No related merge requests found
......@@ -146,9 +146,16 @@ bool MaemoPackageCreationStep::createPackage()
colon = QLatin1String(";");
env.insert(key, path % QLatin1String("bin") % colon % env.value(key));
#endif
env.insert(key, targetRoot() % "/bin" % colon % env.value(key));
env.insert(key, path % QLatin1String("madbin") % colon % env.value(key));
env.insert(QLatin1String("PERL5LIB"), path % QLatin1String("madlib/perl5"));
QString perlLib = QDir::fromNativeSeparators(path % QLatin1String("madlib/perl5"));
#ifdef Q_OS_WIN
perlLib = perlLib.remove(QLatin1Char(':'));
perlLib = perlLib.prepend(QLatin1Char('/'));
#endif
env.insert(QLatin1String("PERL5LIB"), perlLib);
const QString buildDir = buildDirectory();
env.insert(QLatin1String("PWD"), buildDir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment