summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio9Generator.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-09-03 15:22:44 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-05 13:49:59 (GMT)
commit5a365420866849ed0c5cb54ebae5ca96bd5bd984 (patch)
tree55e2e46c032e2433eb0b7b591bfd2451b6a75663 /Source/cmGlobalVisualStudio9Generator.cxx
parent3059e6aed7ac3e773dd1f184558b9fd8a4b7b11e (diff)
downloadCMake-5a365420866849ed0c5cb54ebae5ca96bd5bd984.zip
CMake-5a365420866849ed0c5cb54ebae5ca96bd5bd984.tar.gz
CMake-5a365420866849ed0c5cb54ebae5ca96bd5bd984.tar.bz2
Refactor: Add allowArch parameter to cmake::CreateGlobalGenerator()
Diffstat (limited to 'Source/cmGlobalVisualStudio9Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio9Generator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio9Generator.cxx b/Source/cmGlobalVisualStudio9Generator.cxx
index 9f73c15..2339a80 100644
--- a/Source/cmGlobalVisualStudio9Generator.cxx
+++ b/Source/cmGlobalVisualStudio9Generator.cxx
@@ -16,7 +16,7 @@ class cmGlobalVisualStudio9Generator::Factory : public cmGlobalGeneratorFactory
{
public:
std::unique_ptr<cmGlobalGenerator> CreateGlobalGenerator(
- const std::string& name, cmake* cm) const override
+ const std::string& name, bool allowArch, cmake* cm) const override
{
if (strncmp(name.c_str(), vs9generatorName,
sizeof(vs9generatorName) - 1) != 0) {
@@ -29,7 +29,7 @@ public:
new cmGlobalVisualStudio9Generator(cm, name, ""));
}
- if (p[0] != ' ') {
+ if (!allowArch || p[0] != ' ') {
return std::unique_ptr<cmGlobalGenerator>();
}