summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-22 13:56:04 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-22 13:56:22 (GMT)
commit138aabfa9dfda15cabbc21a240aeacfa9bdcdec2 (patch)
tree9164c86e10d3d4570d1a333c898e0b808918b930 /Source/cmGeneratorTarget.cxx
parent7a07d089b9bbb8336eebf1c54fe6e2a8aaff4533 (diff)
parent0eea32a376fc54b198fa4690ca57b829a2d14baa (diff)
downloadCMake-138aabfa9dfda15cabbc21a240aeacfa9bdcdec2.zip
CMake-138aabfa9dfda15cabbc21a240aeacfa9bdcdec2.tar.gz
CMake-138aabfa9dfda15cabbc21a240aeacfa9bdcdec2.tar.bz2
Merge topic 'vs-csharp-dotnet-sdk'
0eea32a376 VS: Add DOTNET_SDK property to generate SDK-style C# projects a450cc9533 VS: Set ResolveNugetPackages to false for ALL_BUILD and ZERO_CHECK fa76e5d194 cmVisualStudio10TargetGenerator: Factor out helper for classic MSBuild project Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6634
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index b651104..421e136 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -7842,6 +7842,11 @@ bool cmGeneratorTarget::IsCSharpOnly() const
return languages.size() == 1 && languages.count("CSharp") > 0;
}
+bool cmGeneratorTarget::IsDotNetSdkTarget() const
+{
+ return !this->GetProperty("DOTNET_SDK").IsEmpty();
+}
+
void cmGeneratorTarget::ComputeLinkImplementationLanguages(
const std::string& config, cmOptionalLinkImplementation& impl) const
{