summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-01 19:17:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-05 13:42:16 (GMT)
commit94e70e5329e54754820008514a08614577d2f201 (patch)
tree1fb75acad7d57c755bc14210fc8ab515b43e0f18 /Source/cmVisualStudio10TargetGenerator.cxx
parent671cc7490ca1dd732cbb3671d4732eb1ee1e180e (diff)
parent7e57e6ae123439d5101ae1fc3ce593652b408b0c (diff)
downloadCMake-94e70e5329e54754820008514a08614577d2f201.zip
CMake-94e70e5329e54754820008514a08614577d2f201.tar.gz
CMake-94e70e5329e54754820008514a08614577d2f201.tar.bz2
Merge branch 'backport-vs-csharp-ref-no-asm' into vs-csharp-ref-no-asm
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 86099eb..7fe2f2a 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3607,6 +3607,13 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences()
this->WriteString("<Name>", 3);
(*this->BuildFileStream) << name << "</Name>\n";
this->WriteDotNetReferenceCustomTags(name);
+ if (csproj == this->ProjectType) {
+ if (!static_cast<cmGlobalVisualStudioGenerator*>(this->GlobalGenerator)
+ ->TargetCanBeReferenced(dt)) {
+ this->WriteString(
+ "<ReferenceOutputAssembly>false</ReferenceOutputAssembly>\n", 3);
+ }
+ }
this->WriteString("</ProjectReference>\n", 2);
}
this->WriteString("</ItemGroup>\n", 1);