mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'vs-conditional-reference-assembly'
c8e98974d8 VS: Disallow ReferenceOutputAssembly in ProjectReference if not possible
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1956
This commit is contained in:
@@ -3667,10 +3667,8 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences()
|
||||
"{" + this->GlobalGenerator->GetGUID(name) + "}", 3);
|
||||
this->WriteElem("Name", name, 3);
|
||||
this->WriteDotNetReferenceCustomTags(name);
|
||||
if (csproj == this->ProjectType) {
|
||||
if (!this->GlobalGenerator->TargetCanBeReferenced(dt)) {
|
||||
this->WriteElem("ReferenceOutputAssembly", "false", 3);
|
||||
}
|
||||
if (!this->GlobalGenerator->TargetCanBeReferenced(dt)) {
|
||||
this->WriteElem("ReferenceOutputAssembly", "false", 3);
|
||||
}
|
||||
this->WriteString("</ProjectReference>\n", 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user