Refactor VsProjectType to its own header

Move VsProject to its own header so that we can consolidate IsManaged
and IsCSharp.
This commit is contained in:
Sumit Bhardwaj
2021-12-23 11:53:39 -08:00
parent 26ab790820
commit 938a53f4f1
3 changed files with 14 additions and 5 deletions
+1
View File
@@ -766,6 +766,7 @@ if (WIN32)
cmGlobalVisualStudio9Generator.h
cmVisualStudioGeneratorOptions.h
cmVisualStudioGeneratorOptions.cxx
cmVsProjectType.h
cmVisualStudio10TargetGenerator.h
cmVisualStudio10TargetGenerator.cxx
cmLocalVisualStudio10Generator.cxx
+2 -5
View File
@@ -14,6 +14,7 @@
#include <vector>
#include "cmGeneratorTarget.h"
#include "cmVsProjectType.h"
class cmComputeLinkInformation;
class cmCustomCommand;
@@ -211,11 +212,7 @@ private:
OptionsMap LinkOptions;
std::string LangForClCompile;
enum class VsProjectType
{
vcxproj,
csproj
} ProjectType;
VsProjectType ProjectType;
bool InSourceBuild;
std::vector<std::string> Configurations;
std::vector<TargetsFileAndConfigs> TargetsFileAndConfigsVec;
+11
View File
@@ -0,0 +1,11 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once
#include "cmConfigure.h" // IWYU pragma: keep
enum class VsProjectType
{
vcxproj,
csproj
};