diff options
author | Brad King <brad.king@kitware.com> | 2017-09-01 19:18:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-05 13:43:24 (GMT) |
commit | 2ce84615f14db7d40a7a96f86ec0a8ae86eb81fa (patch) | |
tree | a3c3a4a99106112883e9e3b98ee3f534eb483fed /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 2820de210b0334307d5aea8fcbf9fff43cd43e58 (diff) | |
parent | 7e57e6ae123439d5101ae1fc3ce593652b408b0c (diff) | |
download | CMake-2ce84615f14db7d40a7a96f86ec0a8ae86eb81fa.zip CMake-2ce84615f14db7d40a7a96f86ec0a8ae86eb81fa.tar.gz CMake-2ce84615f14db7d40a7a96f86ec0a8ae86eb81fa.tar.bz2 |
Merge branch 'backport-vs-csharp-ref-no-asm' into release-3.9
Merge-request: !1203
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 88fa19c..dee153f 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -3502,6 +3502,13 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences() (*this->BuildFileStream) << "</Project>\n"; this->WriteString("<Name>", 3); (*this->BuildFileStream) << name << "</Name>\n"; + 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); |