diff options
author | Andreas Schönle <a.schoenle@abberior-instruments.com> | 2018-05-03 17:39:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-05-09 12:17:42 (GMT) |
commit | 91754b4e6026974e6264329ec1fad478ced3cc6f (patch) | |
tree | 3f7fdbec5f43d693a99693340674c60892001e9d /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | dd3e1a737216b7c9bfb6c7569685b36a1bff9cba (diff) | |
download | CMake-91754b4e6026974e6264329ec1fad478ced3cc6f.zip CMake-91754b4e6026974e6264329ec1fad478ced3cc6f.tar.gz CMake-91754b4e6026974e6264329ec1fad478ced3cc6f.tar.bz2 |
VS: When not referencing output assembly do not try to copy it either
When generating a `ProjectReference` with `ReferenceOutputAssembly` set
to `false`, also set `CopyToOutputDirectory` to `Never`. Otherwise
MSBuild might report a diagnostic like
Project '<name>' is not up to date.
CopyLocal reference '...\ZERO_CHECK' is missing from output location.
and rebuild the referencing project unnecessarily.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 2e8a2eb..18ec7bf 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -3816,6 +3816,7 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences(Elem& e0) } if (dt->GetManagedType("") < check || unmanagedStatic) { e2.Element("ReferenceOutputAssembly", "false"); + e2.Element("CopyToOutputDirectory", "Never"); } } e2.EndElement(); |