diff options
author | Brad King <brad.king@kitware.com> | 2017-09-01 19:17:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-05 13:42:16 (GMT) |
commit | 94e70e5329e54754820008514a08614577d2f201 (patch) | |
tree | 1fb75acad7d57c755bc14210fc8ab515b43e0f18 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 671cc7490ca1dd732cbb3671d4732eb1ee1e180e (diff) | |
parent | 7e57e6ae123439d5101ae1fc3ce593652b408b0c (diff) | |
download | CMake-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/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index d7ea35a..ece2a77 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -782,6 +782,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 { |