summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorSumit Bhardwaj <bhardwajs@outlook.com>2021-12-23 23:53:04 (GMT)
committerSumit Bhardwaj <bhardwajs@outlook.com>2021-12-23 23:53:04 (GMT)
commit3b7520b94db1cae997b4b2302bdae1bed821b811 (patch)
tree24dd535792ae87fbd6e997f0d089bd35a5866764 /Source/cmLocalVisualStudioGenerator.h
parent938a53f4f15de2cc9075d5c5929de0012060cf43 (diff)
downloadCMake-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.h')
-rw-r--r--Source/cmLocalVisualStudioGenerator.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.h b/Source/cmLocalVisualStudioGenerator.h
index 82a62cf..cf4f4d9 100644
--- a/Source/cmLocalVisualStudioGenerator.h
+++ b/Source/cmLocalVisualStudioGenerator.h
@@ -10,6 +10,7 @@
#include "cmGlobalVisualStudioGenerator.h"
#include "cmLocalGenerator.h"
+#include "cmVsProjectType.h"
class cmCustomCommand;
class cmCustomCommandGenerator;
@@ -30,15 +31,9 @@ public:
cmLocalVisualStudioGenerator(cmGlobalGenerator* gg, cmMakefile* mf);
virtual ~cmLocalVisualStudioGenerator();
- /** Construct a script from the given list of command lines. */
- enum class IsCSharp
- {
- No,
- Yes
- };
std::string ConstructScript(cmCustomCommandGenerator const& ccg,
const std::string& newline = "\n");
- std::string FinishConstructScript(IsCSharp isCSharp,
+ std::string FinishConstructScript(VsProjectType projectType,
const std::string& newline = "\n");
/** Label to which to jump in a batch file after a failed step in a