summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-01 19:18:28 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-05 13:43:24 (GMT)
commit2ce84615f14db7d40a7a96f86ec0a8ae86eb81fa (patch)
treea3c3a4a99106112883e9e3b98ee3f534eb483fed /Source/cmGlobalVisualStudioGenerator.cxx
parent2820de210b0334307d5aea8fcbf9fff43cd43e58 (diff)
parent7e57e6ae123439d5101ae1fc3ce593652b408b0c (diff)
downloadCMake-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/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 87a22d1..bbff48e 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -778,6 +778,19 @@ bool cmGlobalVisualStudioGenerator::TargetIsCSharpOnly(
return false;
}
+bool cmGlobalVisualStudioGenerator::TargetCanBeReferenced(
+ cmGeneratorTarget const* gt)
+{
+ if (this->TargetIsCSharpOnly(gt)) {
+ return true;
+ }
+ if (gt->GetType() != cmStateEnums::SHARED_LIBRARY &&
+ gt->GetType() != cmStateEnums::EXECUTABLE) {
+ return false;
+ }
+ return true;
+}
+
bool cmGlobalVisualStudioGenerator::TargetCompare::operator()(
cmGeneratorTarget const* l, cmGeneratorTarget const* r) const
{