From 4bd89e16c155610922165b246e14c15a43102e4a Mon Sep 17 00:00:00 2001 From: Sergey Petrov Date: Fri, 9 Dec 2016 15:57:25 +0300 Subject: cpp module: fixed output path for pch_copy file in JavaScriptCommand Change-Id: Icec903bef4cfccf3a1d1075b46bda57e1cfa5fad Reviewed-by: Christian Kandeler --- share/qbs/modules/cpp/msvc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3