diff options
author | Steven Boswell <ulatekh@yahoo.com> | 2021-12-15 18:11:48 (GMT) |
---|---|---|
committer | Steven Boswell <ulatekh@yahoo.com> | 2021-12-15 18:11:48 (GMT) |
commit | dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7 (patch) | |
tree | 82c26ec566af73a7125e56edf90a74010f52ae7b /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | cd6b08440752f335f01c3419417dc817d20423ec (diff) | |
download | CMake-dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7.zip CMake-dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7.tar.gz CMake-dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7.tar.bz2 |
VS: add missing label in C# project-build events
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 5bec7d3..050cc53 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); @@ -4286,6 +4290,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); |