cmGlobalGenerator: Implement VS6 check without virtual method.

Don't require existence of a global generator for this check.
This commit is contained in:
Stephen Kelly 2015-08-24 09:08:29 +02:00
parent cd6293cdf8
commit 7f551b4f26
2 changed files with 1 additions and 3 deletions

View File

@ -242,7 +242,7 @@ public:
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
/** Is this the Visual Studio 6 generator? */ /** Is this the Visual Studio 6 generator? */
virtual bool IsForVS6() const { return false; } bool IsForVS6() const { return this->GetName() == "Visual Studio 6"; }
#endif #endif
///! Find a target by name by searching the local generators. ///! Find a target by name by searching the local generators.

View File

@ -85,8 +85,6 @@ public:
virtual void FindMakeProgram(cmMakefile*); virtual void FindMakeProgram(cmMakefile*);
virtual bool IsForVS6() const { return true; }
protected: protected:
virtual void Generate(); virtual void Generate();
virtual const char* GetIDEVersion() { return "6.0"; } virtual const char* GetIDEVersion() { return "6.0"; }