summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-08 13:39:26 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-08 13:39:34 (GMT)
commit4bd8a35b55456930256945a457efa7ea8e4aace7 (patch)
treedf384471ae931a5a9a8af02057406bcf03dad23b /Source/cmVisualStudio10TargetGenerator.cxx
parent72731dd9ddf08cab91ddba8ca1117827e3294fa4 (diff)
parent5cdd774d519d7a524c398855573781dfdbf41a02 (diff)
downloadCMake-4bd8a35b55456930256945a457efa7ea8e4aace7.zip
CMake-4bd8a35b55456930256945a457efa7ea8e4aace7.tar.gz
CMake-4bd8a35b55456930256945a457efa7ea8e4aace7.tar.bz2
Merge topic 'dotnet_sdk'
5cdd774d51 VS: Handle build target correct for .NET SDK style projects with Any CPU 309191052c VS: Set Visual Studio versions read out from solution file f7791698cb VS: Allow setting output directory in .NET SDK style projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6944
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 7b197fa..8ffb664 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -926,6 +926,17 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile(
e1.Element("OutputType", outputType);
}
+ for (const std::string& config : this->Configurations) {
+ Elem e1(e0, "PropertyGroup");
+ e1.Attribute("Condition", "'$(Configuration)' == '" + config + "'");
+ e1.SetHasElements();
+ this->WriteEvents(e1, config);
+
+ std::string outDir = this->GeneratorTarget->GetDirectory(config) + "/";
+ ConvertToWindowsSlash(outDir);
+ e1.Element("OutputPath", outDir);
+ }
+
this->WriteDotNetDocumentationFile(e0);
this->WriteAllSources(e0);
this->WriteDotNetReferences(e0);