summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-10 08:43:29 -0500
committerBrad King <brad.king@kitware.com>2019-01-10 09:38:35 -0500
commit89cc3d432bc576d00cb12880b37ec8b348599897 (patch)
tree45d74c1605d34d6c2ad289d6572f3084b81cbb50 /Source/cmGlobalVisualStudioGenerator.h
parent40a732800d52b394d7bd4a81e9aaef04ef5914e6 (diff)
downloadcmake-89cc3d432bc576d00cb12880b37ec8b348599897.tar.gz
VS: Move platform name members to top-level global generator
We no longer support any VS versions that pre-date support for multiple platforms (target architectures).
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index d827616956..3909a26ead 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/Source/cmGlobalVisualStudioGenerator.h
@@ -49,6 +49,14 @@ public:
/** Is the installed VS an Express edition? */
bool IsExpressEdition() const { return this->ExpressEdition; }
+ bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf) override;
+
+ /**
+ * Get the name of the target platform (architecture) for which we generate.
+ * The names are as defined by VS, e.g. "Win32", "x64", "Itanium", "ARM".
+ */
+ std::string const& GetPlatformName() const;
+
/**
* Configure CMake's Visual Studio macros file into the user's Visual
* Studio macros directory.
@@ -132,7 +140,8 @@ public:
bool dryRun) override;
protected:
- cmGlobalVisualStudioGenerator(cmake* cm);
+ cmGlobalVisualStudioGenerator(cmake* cm,
+ std::string const& platformInGeneratorName);
void AddExtraIDETargets() override;
@@ -167,6 +176,9 @@ protected:
VSVersion Version;
bool ExpressEdition;
+ std::string GeneratorPlatform;
+ std::string DefaultPlatformName;
+
private:
virtual std::string GetVSMakeProgram() = 0;
void PrintCompilerAdvice(std::ostream&, std::string const&,