aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Petrov <petrov@guardant.ru>2016-12-09 15:57:25 +0300
committerChristian Kandeler <christian.kandeler@qt.io>2017-01-05 11:59:08 +0000
commit4bd89e16c155610922165b246e14c15a43102e4a (patch)
treeec19d59635fff2682c410541fce800742ccd4eeb
parent0b6d23e67521e0d166704ce50ed26d340853db98 (diff)
cpp module: fixed output path for pch_copy file in JavaScriptCommand
Change-Id: Icec903bef4cfccf3a1d1075b46bda57e1cfa5fad Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--share/qbs/modules/cpp/msvc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js
index 413f378d9..fb5998995 100644
--- a/share/qbs/modules/cpp/msvc.js
+++ b/share/qbs/modules/cpp/msvc.js
@@ -163,7 +163,7 @@ function prepareCompiler(project, product, inputs, outputs, input, output) {
copyCmd.tag = tag;
copyCmd.silent = true;
copyCmd.sourceCode = function() {
- File.copy(input.filePath, outputs[tag + "_pch_copy"]);
+ File.copy(input.filePath, outputs[tag + "_pch_copy"][0].filePath);
};
commands.push(copyCmd);
} else {