mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
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.
This commit is contained in:
committed by
Brad King
parent
dd3e1a7372
commit
91754b4e60
@@ -3816,6 +3816,7 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences(Elem& e0)
|
|||||||
}
|
}
|
||||||
if (dt->GetManagedType("") < check || unmanagedStatic) {
|
if (dt->GetManagedType("") < check || unmanagedStatic) {
|
||||||
e2.Element("ReferenceOutputAssembly", "false");
|
e2.Element("ReferenceOutputAssembly", "false");
|
||||||
|
e2.Element("CopyToOutputDirectory", "Never");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
e2.EndElement();
|
e2.EndElement();
|
||||||
|
|||||||
Reference in New Issue
Block a user