summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorFlorian Schweiger <husker@dzdm.de>2022-02-02 16:58:49 (GMT)
committerFlorian Schweiger <husker@dzdm.de>2022-02-07 11:03:03 (GMT)
commitf7791698cbfd1b1de0ae2e26d1feebbc92acdc42 (patch)
treef9a918b2389d3339234868da61d86d7f49a4665c /Source/cmVisualStudio10TargetGenerator.cxx
parentece32491abe7c521c2330e3d24af2e0f5980fc36 (diff)
downloadCMake-f7791698cbfd1b1de0ae2e26d1feebbc92acdc42.zip
CMake-f7791698cbfd1b1de0ae2e26d1feebbc92acdc42.tar.gz
CMake-f7791698cbfd1b1de0ae2e26d1feebbc92acdc42.tar.bz2
VS: Allow setting output directory in .NET SDK style projects
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 f325994..91152e5 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->WritePackageReferences(e0);