diff options
author | Sumit Bhardwaj <bhardwajs@outlook.com> | 2021-12-23 23:53:04 (GMT) |
---|---|---|
committer | Sumit Bhardwaj <bhardwajs@outlook.com> | 2021-12-23 23:53:04 (GMT) |
commit | 3b7520b94db1cae997b4b2302bdae1bed821b811 (patch) | |
tree | 24dd535792ae87fbd6e997f0d089bd35a5866764 /Source/cmLocalVisualStudioGenerator.cxx | |
parent | 938a53f4f15de2cc9075d5c5929de0012060cf43 (diff) | |
download | CMake-3b7520b94db1cae997b4b2302bdae1bed821b811.zip CMake-3b7520b94db1cae997b4b2302bdae1bed821b811.tar.gz CMake-3b7520b94db1cae997b4b2302bdae1bed821b811.tar.bz2 |
Consolidate usage of VsProjectType
Move ProjectFileExtension handling logic to use ProjectType and remove
extraneous checks in .Net SDK style project generation. This change will
make introducing new project types relatively simpler.
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudioGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx index a21293b..93f01ed 100644 --- a/Source/cmLocalVisualStudioGenerator.cxx +++ b/Source/cmLocalVisualStudioGenerator.cxx @@ -245,14 +245,14 @@ std::string cmLocalVisualStudioGenerator::ConstructScript( } std::string cmLocalVisualStudioGenerator::FinishConstructScript( - IsCSharp isCSharp, const std::string& newline) + VsProjectType projectType, const std::string& newline) { bool useLocal = this->CustomCommandUseLocal(); // Store the script in a string. std::string script; - if (useLocal && isCSharp == IsCSharp::Yes) { + if (useLocal && projectType == VsProjectType::csproj) { // This label is not provided by MSBuild for C# projects. script += newline; script += this->GetReportErrorLabel(); |