diff options
author | Brad King <brad.king@kitware.com> | 2023-06-23 14:52:37 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-06-23 14:52:49 (GMT) |
commit | df6a3aff27c8883cad091c6cf1c1ae61cca4b389 (patch) | |
tree | 46d1618785057158fa3f2568dea31f64a26d12e2 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 6e4a0571628ab2c2944ba226f438f317f34a7305 (diff) | |
parent | a4d532e9987747b08ba46656257863885ee5fd94 (diff) | |
download | CMake-df6a3aff27c8883cad091c6cf1c1ae61cca4b389.zip CMake-df6a3aff27c8883cad091c6cf1c1ae61cca4b389.tar.gz CMake-df6a3aff27c8883cad091c6cf1c1ae61cca4b389.tar.bz2 |
Merge topic 'vs-sdk-selection'
a4d532e998 VS: Restore Windows SDK selection with platform in generator name
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8583
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 eac0672..4d7571a 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -75,6 +75,9 @@ void cmGlobalVisualStudioGenerator::EnableLanguage( bool cmGlobalVisualStudioGenerator::SetGeneratorPlatform(std::string const& p, cmMakefile* mf) { + if (!this->InitializePlatform(mf)) { + return false; + } if (this->GetPlatformName() == "x64") { mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE"); } else if (this->GetPlatformName() == "Itanium") { @@ -84,6 +87,11 @@ bool cmGlobalVisualStudioGenerator::SetGeneratorPlatform(std::string const& p, return this->cmGlobalGenerator::SetGeneratorPlatform(p, mf); } +bool cmGlobalVisualStudioGenerator::InitializePlatform(cmMakefile*) +{ + return true; +} + std::string const& cmGlobalVisualStudioGenerator::GetPlatformName() const { if (!this->GeneratorPlatform.empty()) { |