diff options
author | Brad King <brad.king@kitware.com> | 2022-02-08 13:39:26 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-02-08 13:39:34 (GMT) |
commit | 4bd8a35b55456930256945a457efa7ea8e4aace7 (patch) | |
tree | df384471ae931a5a9a8af02057406bcf03dad23b /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 72731dd9ddf08cab91ddba8ca1117827e3294fa4 (diff) | |
parent | 5cdd774d519d7a524c398855573781dfdbf41a02 (diff) | |
download | CMake-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.cxx | 11 |
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); |