diff options
author | Sumit Bhardwaj <bhardwajs@outlook.com> | 2021-12-16 18:19:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-16 20:31:14 (GMT) |
commit | aca153b104af02ebd140c888928e6e95d1d7f8c1 (patch) | |
tree | c214ab1ab64e37d5afbb5aabaa3a7bb8f626f90f /Source/cmLocalVisualStudioGenerator.cxx | |
parent | b86c6977b11527c31f17a3551d498019fb324fa3 (diff) | |
download | CMake-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/cmLocalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudioGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx index f696dea..a21293b 100644 --- a/Source/cmLocalVisualStudioGenerator.cxx +++ b/Source/cmLocalVisualStudioGenerator.cxx @@ -245,15 +245,15 @@ std::string cmLocalVisualStudioGenerator::ConstructScript( } std::string cmLocalVisualStudioGenerator::FinishConstructScript( - IsManaged isManaged, const std::string& newline) + IsCSharp isCSharp, const std::string& newline) { bool useLocal = this->CustomCommandUseLocal(); // Store the script in a string. std::string script; - if (useLocal && isManaged == IsManaged::Yes) { - // These aren't generated by default for C# projects. + if (useLocal && isCSharp == IsCSharp::Yes) { + // This label is not provided by MSBuild for C# projects. script += newline; script += this->GetReportErrorLabel(); } |