diff options
author | Brad King <brad.king@kitware.com> | 2019-04-22 11:38:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-22 11:38:33 (GMT) |
commit | cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c (patch) | |
tree | 95826235038775468ac681b1dfef81afb5a9fc1d /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 8c322f9313e60af28d2deee739a88a683885e484 (diff) | |
parent | db02be85a0bcccb633b31f087cde96d95fd21e8f (diff) | |
download | CMake-cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c.zip CMake-cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c.tar.gz CMake-cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c.tar.bz2 |
Merge topic 'vs-default-platform'
db02be85a0 VS: Provide the default platform name to project code
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3246
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 280c986..39c325c 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -53,6 +53,14 @@ void cmGlobalVisualStudioGenerator::SetVersion(VSVersion v) this->Version = v; } +void cmGlobalVisualStudioGenerator::EnableLanguage( + std::vector<std::string> const& lang, cmMakefile* mf, bool optional) +{ + mf->AddDefinition("CMAKE_VS_PLATFORM_NAME_DEFAULT", + this->DefaultPlatformName.c_str()); + this->cmGlobalGenerator::EnableLanguage(lang, mf, optional); +} + bool cmGlobalVisualStudioGenerator::SetGeneratorPlatform(std::string const& p, cmMakefile* mf) { |