ENH: add MSVC90 define to vs9 ide

This commit is contained in:
Bill Hoffman 2008-01-18 14:34:48 -05:00
parent 0bbae2a5b2
commit 77ef811c8e
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,11 @@ cmGlobalVisualStudio9Generator::cmGlobalVisualStudio9Generator()
this->FindMakeProgramFile = "CMakeVS9FindMake.cmake"; this->FindMakeProgramFile = "CMakeVS9FindMake.cmake";
} }
//----------------------------------------------------------------------------
void cmGlobalVisualStudio9Generator::AddPlatformDefinitions(cmMakefile* mf)
{
mf->AddDefinition("MSVC90", "1");
}
void cmGlobalVisualStudio9Generator::WriteSLNHeader(std::ostream& fout) void cmGlobalVisualStudio9Generator::WriteSLNHeader(std::ostream& fout)
{ {

View File

@ -37,7 +37,8 @@ public:
virtual const char* GetName() const { virtual const char* GetName() const {
return cmGlobalVisualStudio9Generator::GetActualName();} return cmGlobalVisualStudio9Generator::GetActualName();}
static const char* GetActualName() {return "Visual Studio 9 2008";} static const char* GetActualName() {return "Visual Studio 9 2008";}
virtual void AddPlatformDefinitions(cmMakefile* mf);
/** Get the documentation entry for this generator. */ /** Get the documentation entry for this generator. */
virtual void GetDocumentation(cmDocumentationEntry& entry) const; virtual void GetDocumentation(cmDocumentationEntry& entry) const;