|
|
@@ -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()) {
|