summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-16 15:36:41 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-16 15:36:56 (GMT)
commitd71425f989b840dd8a07c7e52c20252ecce27086 (patch)
tree38a42756e4b95819f752c48f49796c75904a7295 /Source/cmVisualStudio10TargetGenerator.cxx
parent4663c82f9e74700ebf7f1677c518869fe5589f8c (diff)
parentdff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7 (diff)
downloadCMake-d71425f989b840dd8a07c7e52c20252ecce27086.zip
CMake-d71425f989b840dd8a07c7e52c20252ecce27086.tar.gz
CMake-d71425f989b840dd8a07c7e52c20252ecce27086.tar.bz2
Merge topic 'vs-csproj-scripts'
dff98aa9ca VS: add missing label in C# project-build events Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6801
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 4d0773b..e09ac74 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1571,6 +1571,10 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule(
}
}
}
+ cmLocalVisualStudioGenerator::IsManaged isManaged = (this->Managed)
+ ? cmLocalVisualStudioGenerator::IsManaged::Yes
+ : cmLocalVisualStudioGenerator::IsManaged::No;
+ script += lg->FinishConstructScript(isManaged);
if (this->ProjectType == VsProjectType::csproj) {
std::string name = "CustomCommand_" + c + "_" +
cmSystemTools::ComputeStringMD5(sourcePath);
@@ -4303,6 +4307,12 @@ void cmVisualStudio10TargetGenerator::WriteEvent(
stdPipesUTF8 = stdPipesUTF8 || cc.GetStdPipesUTF8();
}
}
+ if (!script.empty()) {
+ cmLocalVisualStudioGenerator::IsManaged isManaged = (this->Managed)
+ ? cmLocalVisualStudioGenerator::IsManaged::Yes
+ : cmLocalVisualStudioGenerator::IsManaged::No;
+ script += lg->FinishConstructScript(isManaged);
+ }
comment = cmVS10EscapeComment(comment);
if (this->ProjectType != VsProjectType::csproj) {
Elem e2(e1, name);