summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSumit Bhardwaj <bhardwajs@outlook.com>2021-12-23 19:53:39 (GMT)
committerSumit Bhardwaj <bhardwajs@outlook.com>2021-12-23 19:53:39 (GMT)
commit938a53f4f15de2cc9075d5c5929de0012060cf43 (patch)
tree0240c9c2d0da7ca992c1f9399d974a7af7836cb8 /Source
parent26ab79082084ef09ba55315e4b846b1d362d6c41 (diff)
downloadCMake-938a53f4f15de2cc9075d5c5929de0012060cf43.zip
CMake-938a53f4f15de2cc9075d5c5929de0012060cf43.tar.gz
CMake-938a53f4f15de2cc9075d5c5929de0012060cf43.tar.bz2
Refactor VsProjectType to its own header
Move VsProject to its own header so that we can consolidate IsManaged and IsCSharp.
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt1
-rw-r--r--Source/cmVisualStudio10TargetGenerator.h7
-rw-r--r--Source/cmVsProjectType.h11
3 files changed, 14 insertions, 5 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 677fd2f..a9aec6c 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -766,6 +766,7 @@ if (WIN32)
cmGlobalVisualStudio9Generator.h
cmVisualStudioGeneratorOptions.h
cmVisualStudioGeneratorOptions.cxx
+ cmVsProjectType.h
cmVisualStudio10TargetGenerator.h
cmVisualStudio10TargetGenerator.cxx
cmLocalVisualStudio10Generator.cxx
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h
index 37b8dfd..8d2b77d 100644
--- a/Source/cmVisualStudio10TargetGenerator.h
+++ b/Source/cmVisualStudio10TargetGenerator.h
@@ -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;
diff --git a/Source/cmVsProjectType.h b/Source/cmVsProjectType.h
new file mode 100644
index 0000000..8899267
--- /dev/null
+++ b/Source/cmVsProjectType.h
@@ -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
+};