|
@@ -42,18 +42,12 @@ static cmVS7FlagTable cmVS7ExtraFlagTable[] = {
|
|
|
|
|
|
|
|
cmGlobalVisualStudio7Generator::cmGlobalVisualStudio7Generator(
|
|
cmGlobalVisualStudio7Generator::cmGlobalVisualStudio7Generator(
|
|
|
cmake* cm, std::string const& platformInGeneratorName)
|
|
cmake* cm, std::string const& platformInGeneratorName)
|
|
|
- : cmGlobalVisualStudioGenerator(cm)
|
|
|
|
|
|
|
+ : cmGlobalVisualStudioGenerator(cm, platformInGeneratorName)
|
|
|
{
|
|
{
|
|
|
this->IntelProjectVersion = 0;
|
|
this->IntelProjectVersion = 0;
|
|
|
this->DevEnvCommandInitialized = false;
|
|
this->DevEnvCommandInitialized = false;
|
|
|
this->MasmEnabled = false;
|
|
this->MasmEnabled = false;
|
|
|
this->NasmEnabled = false;
|
|
this->NasmEnabled = false;
|
|
|
-
|
|
|
|
|
- if (platformInGeneratorName.empty()) {
|
|
|
|
|
- this->DefaultPlatformName = "Win32";
|
|
|
|
|
- } else {
|
|
|
|
|
- this->DefaultPlatformName = platformInGeneratorName;
|
|
|
|
|
- }
|
|
|
|
|
this->ExtraFlagTable = cmVS7ExtraFlagTable;
|
|
this->ExtraFlagTable = cmVS7ExtraFlagTable;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -263,14 +257,6 @@ Json::Value cmGlobalVisualStudio7Generator::GetJson() const
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-std::string const& cmGlobalVisualStudio7Generator::GetPlatformName() const
|
|
|
|
|
-{
|
|
|
|
|
- if (!this->GeneratorPlatform.empty()) {
|
|
|
|
|
- return this->GeneratorPlatform;
|
|
|
|
|
- }
|
|
|
|
|
- return this->DefaultPlatformName;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
bool cmGlobalVisualStudio7Generator::SetSystemName(std::string const& s,
|
|
bool cmGlobalVisualStudio7Generator::SetSystemName(std::string const& s,
|
|
|
cmMakefile* mf)
|
|
cmMakefile* mf)
|
|
|
{
|
|
{
|
|
@@ -279,18 +265,6 @@ bool cmGlobalVisualStudio7Generator::SetSystemName(std::string const& s,
|
|
|
return this->cmGlobalVisualStudioGenerator::SetSystemName(s, mf);
|
|
return this->cmGlobalVisualStudioGenerator::SetSystemName(s, mf);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool cmGlobalVisualStudio7Generator::SetGeneratorPlatform(std::string const& p,
|
|
|
|
|
- cmMakefile* mf)
|
|
|
|
|
-{
|
|
|
|
|
- if (this->GetPlatformName() == "x64") {
|
|
|
|
|
- mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
|
|
|
|
|
- } else if (this->GetPlatformName() == "Itanium") {
|
|
|
|
|
- mf->AddDefinition("CMAKE_FORCE_IA64", "TRUE");
|
|
|
|
|
- }
|
|
|
|
|
- mf->AddDefinition("CMAKE_VS_PLATFORM_NAME", this->GetPlatformName().c_str());
|
|
|
|
|
- return this->cmGlobalVisualStudioGenerator::SetGeneratorPlatform(p, mf);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
void cmGlobalVisualStudio7Generator::Generate()
|
|
void cmGlobalVisualStudio7Generator::Generate()
|
|
|
{
|
|
{
|
|
|
// first do the superclass method
|
|
// first do the superclass method
|