summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorMichael Stürmer <michael.stuermer@schaeffler.com>2018-04-27 05:24:47 (GMT)
committerMichael Stürmer <michael.stuermer@schaeffler.com>2018-05-07 05:20:46 (GMT)
commit8d7ffed04819669ebc9fb365ade6bffaab443a3a (patch)
treebe17f5a635597f3b42f4b225cd6a77c76cb41f22 /Source/cmVisualStudio10TargetGenerator.cxx
parent73ee599a8203271245ab7a55095eb92843768b54 (diff)
downloadCMake-8d7ffed04819669ebc9fb365ade6bffaab443a3a.zip
CMake-8d7ffed04819669ebc9fb365ade6bffaab443a3a.tar.gz
CMake-8d7ffed04819669ebc9fb365ade6bffaab443a3a.tar.bz2
cmVisualStudio10TargetGenerator: issue warning when adding static C# lib
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 7a7c647..da00f5c 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -333,6 +333,14 @@ void cmVisualStudio10TargetGenerator::Generate()
this->ProjectType = vcxproj;
this->Managed = false;
} else if (this->ProjectFileExtension == ".csproj") {
+ if (this->GeneratorTarget->GetType() == cmStateEnums::STATIC_LIBRARY) {
+ std::string message = "The C# target \"" +
+ this->GeneratorTarget->GetName() +
+ "\" is of type STATIC_LIBRARY. This is discouraged (and may be "
+ "disabled in future). Make it a SHARED library instead.";
+ this->Makefile->IssueMessage(cmake::MessageType::DEPRECATION_WARNING,
+ message);
+ }
this->ProjectType = csproj;
this->Managed = true;
}