aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Costa <miguel.costa@qt.io>2018-03-26 15:03:32 +0200
committerMiguel Costa <miguel.costa@qt.io>2018-03-28 10:08:47 +0000
commit61f8d96a635b307621523fe3f6c847716c64287a (patch)
tree1afcbd25fee28fb76ee5012ae72b18fe41fc6dc2
parent785ce8f01d3601f680da6d743d5f692c81d86579 (diff)
Disable "fast up-to-date check" by default
Disable by default the fast up-to-date check that is performed by Visual Studio to decide whether or not to call MSBuild. Setting the property DisableFastUpToDateCheck ensures an "accurate" build, fully based on MSBuild semantics: "Whether Visual Studio should do its own faster up-to-date check before Building, rather than invoke MSBuild to do a possibly more accurate one. You would set this to [true] if you have a heavily customized build process and builds in Visual Studio are not occurring when they should." (https://goo.gl/4riNrR) In recent versions of VS 2017, the "fast up-to-date check" fails in the case of the Qt/MSBuild targets, leading to projects not being built when a .uic or .qrc file is changed. Task-number: QTVSADDINBUG-531 Change-Id: Ib847fbdad881d747afcbc963144100a60825ae91 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r--src/qtmsbuild/qt.targets3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qtmsbuild/qt.targets b/src/qtmsbuild/qt.targets
index f1edbb7f..5b4d13ae 100644
--- a/src/qtmsbuild/qt.targets
+++ b/src/qtmsbuild/qt.targets
@@ -516,4 +516,7 @@
</ClCompile>
</ItemGroup>
</Target>
+ <PropertyGroup Condition="$(QtDisableFastUpToDateCheck) != 'false'">
+ <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
+ </PropertyGroup>
</Project>