diff options
author | Sebastian Maisch <s.maisch@enscape3d.com> | 2022-10-27 07:29:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-27 13:58:09 (GMT) |
commit | d2d1be06717cd0fd630ab478117ff84f958417ce (patch) | |
tree | 7f9a0d58f45a7b8544a7499ea59c35f4026be5ee | |
parent | 33d610a07695ca4716e376d7411845ccd894c6c0 (diff) | |
download | CMake-d2d1be06717cd0fd630ab478117ff84f958417ce.zip CMake-d2d1be06717cd0fd630ab478117ff84f958417ce.tar.gz CMake-d2d1be06717cd0fd630ab478117ff84f958417ce.tar.bz2 |
VS: Fix paths in multi-target SDK-style projects
Set the `AppendTargetFrameworkToOutputPath` property to `false` only for
single target SDK-style projects. This prevents outputs from being
overwritten during the build. This revises commit 7671d71299 (VS: Fix
target output paths in SDK-style projects, 2022-09-23, v3.25.0-rc1~82^2).
Fixes: #24094
Issue: #23989
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index c09eefa..4cfb561 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -903,7 +903,6 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile( // of the IDE. e1.Element("VCProjectUpgraderObjectName", "NoUpgrade"); e1.Element("ManagedAssembly", "true"); - e1.Element("AppendTargetFrameworkToOutputPath", "false"); cmValue targetFramework = this->GeneratorTarget->GetProperty("DOTNET_TARGET_FRAMEWORK"); @@ -912,9 +911,11 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile( e1.Element("TargetFrameworks", *targetFramework); } else { e1.Element("TargetFramework", *targetFramework); + e1.Element("AppendTargetFrameworkToOutputPath", "false"); } } else { e1.Element("TargetFramework", "net5.0"); + e1.Element("AppendTargetFrameworkToOutputPath", "false"); } std::string outputType; |