diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-05-05 10:31:04 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-05-05 10:31:17 +0200 |
commit | f8bf675c3570e9af20950e622dd52f6ad547ab3f (patch) | |
tree | f8ff74da41791c380b2782894ed1d236256d0276 /src/lib/corelib/api | |
parent | a95d1362b1328bb6ad7f1145ab9d6be52af0f469 (diff) | |
parent | 512704a52858688366a99d8959bf75ee35099e19 (diff) |
Merge 1.8 into master
Change-Id: Ie4ec88083aa4c85bbe872d8dc175960292f75d5c
Diffstat (limited to 'src/lib/corelib/api')
-rw-r--r-- | src/lib/corelib/api/project.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/corelib/api/project.cpp b/src/lib/corelib/api/project.cpp index 1508c34e9..628ccb20c 100644 --- a/src/lib/corelib/api/project.cpp +++ b/src/lib/corelib/api/project.cpp @@ -304,12 +304,17 @@ void ProjectPrivate::setupInstallData(ArtifactData &artifact, QLatin1String("qbs"), QLatin1String("installRoot")).toString(); InstallOptions options; options.setInstallRoot(installRoot); - QString installFilePath = ProductInstaller::targetFilePath(product->topLevelProject(), - product->sourceDirectory, artifact.filePath(), artifact.properties().d->m_map, options); - if (!installRoot.isEmpty()) - installFilePath.remove(0, installRoot.count()); artifact.d->installData.d->installRoot = installRoot; - artifact.d->installData.d->installFilePath = installFilePath; + try { + QString installFilePath = ProductInstaller::targetFilePath(product->topLevelProject(), + product->sourceDirectory, artifact.filePath(), artifact.properties().d->m_map, + options); + if (!installRoot.isEmpty()) + installFilePath.remove(0, installRoot.count()); + artifact.d->installData.d->installFilePath = installFilePath; + } catch (const ErrorInfo &e) { + logger.printWarning(e); + } } #ifdef QBS_ENABLE_PROJECT_FILE_UPDATES |