summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorSumit Bhardwaj <bhardwajs@outlook.com>2021-12-16 18:19:40 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-16 20:31:14 (GMT)
commitaca153b104af02ebd140c888928e6e95d1d7f8c1 (patch)
treec214ab1ab64e37d5afbb5aabaa3a7bb8f626f90f /Source/cmLocalVisualStudio7Generator.cxx
parentb86c6977b11527c31f17a3551d498019fb324fa3 (diff)
downloadCMake-aca153b104af02ebd140c888928e6e95d1d7f8c1.zip
CMake-aca153b104af02ebd140c888928e6e95d1d7f8c1.tar.gz
CMake-aca153b104af02ebd140c888928e6e95d1d7f8c1.tar.bz2
VS: Add custom VCEnd labels only in C# projects
In commit dff98aa9ca (VS: add missing label in C# project-build events, 2021-12-15) the condition for adding our own `VCEnd` label was based on the project being managed or not. Since we support managed C++ projects, switch the condition to be based on whether the project is C#. Issue: #21440
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index a9db953..fd13c0b 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -574,8 +574,7 @@ public:
{
// If any commands were generated, finish constructing them.
if (!this->First) {
- std::string finishScript =
- this->LG->FinishConstructScript(IsManaged::No);
+ std::string finishScript = this->LG->FinishConstructScript(IsCSharp::No);
this->Stream << this->LG->EscapeForXML(finishScript) << "\"";
}
@@ -1818,7 +1817,7 @@ void cmLocalVisualStudio7Generator::WriteCustomRule(
if (this->FortranProject) {
cmSystemTools::ReplaceString(script, "$(Configuration)", config);
}
- script += this->FinishConstructScript(IsManaged::No);
+ script += this->FinishConstructScript(IsCSharp::No);
/* clang-format off */
fout << "\t\t\t\t\t<Tool\n"
<< "\t\t\t\t\tName=\"" << customTool << "\"\n"