Browse Source

cmGlobalVisualStudioGenerator::GetIDEVersion(): const added

Vitaly Stakhovsky 6 years ago
parent
commit
77d83568e0

+ 1 - 1
Source/cmGlobalVisualStudio10Generator.h

@@ -140,7 +140,7 @@ protected:
   virtual bool SelectWindowsPhoneToolset(std::string& toolset) const;
   virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
 
-  const char* GetIDEVersion() override { return "10.0"; }
+  const char* GetIDEVersion() const override { return "10.0"; }
 
   std::string const& GetMSBuildCommand();
 

+ 1 - 1
Source/cmGlobalVisualStudio11Generator.h

@@ -43,7 +43,7 @@ protected:
   bool IsWindowsPhoneToolsetInstalled() const;
   bool IsWindowsStoreToolsetInstalled() const;
 
-  const char* GetIDEVersion() override { return "11.0"; }
+  const char* GetIDEVersion() const override { return "11.0"; }
   bool UseFolderProperty() const override;
   static std::set<std::string> GetInstalledWindowsCESDKs();
 

+ 1 - 1
Source/cmGlobalVisualStudio12Generator.h

@@ -48,7 +48,7 @@ protected:
   // of the toolset is installed
   bool IsWindowsPhoneToolsetInstalled() const;
   bool IsWindowsStoreToolsetInstalled() const;
-  const char* GetIDEVersion() override { return "12.0"; }
+  const char* GetIDEVersion() const override { return "12.0"; }
 
 private:
   class Factory;

+ 1 - 1
Source/cmGlobalVisualStudio14Generator.h

@@ -41,7 +41,7 @@ protected:
   // version of the toolset.
   virtual std::string GetWindows10SDKMaxVersion() const;
 
-  const char* GetIDEVersion() override { return "14.0"; }
+  const char* GetIDEVersion() const override { return "14.0"; }
   virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
 
   // Used to verify that the Desktop toolset for the current generator is

+ 1 - 1
Source/cmGlobalVisualStudio15Generator.h

@@ -39,7 +39,7 @@ protected:
   bool InitializeWindows(cmMakefile* mf) override;
   bool SelectWindowsStoreToolset(std::string& toolset) const override;
 
-  const char* GetIDEVersion() override { return "15.0"; }
+  const char* GetIDEVersion() const override { return "15.0"; }
 
   // Used to verify that the Desktop toolset for the current generator is
   // installed on the machine.

+ 0 - 1
Source/cmGlobalVisualStudio7Generator.h

@@ -111,7 +111,6 @@ public:
 
 protected:
   void Generate() override;
-  virtual const char* GetIDEVersion() = 0;
 
   std::string const& GetDevEnvCommand();
   virtual std::string FindDevEnvCommand();

+ 1 - 1
Source/cmGlobalVisualStudio8Generator.h

@@ -49,7 +49,7 @@ public:
 
 protected:
   void AddExtraIDETargets() override;
-  const char* GetIDEVersion() override { return "8.0"; }
+  const char* GetIDEVersion() const override { return "8.0"; }
 
   std::string FindDevEnvCommand() override;
 

+ 1 - 1
Source/cmGlobalVisualStudio9Generator.h

@@ -37,7 +37,7 @@ public:
   std::string GetUserMacrosRegKeyBase() override;
 
 protected:
-  const char* GetIDEVersion() override { return "9.0"; }
+  const char* GetIDEVersion() const override { return "9.0"; }
 
 private:
   class Factory;

+ 1 - 1
Source/cmGlobalVisualStudioGenerator.h

@@ -137,7 +137,7 @@ protected:
   // below 8.
   virtual bool VSLinksDependencies() const { return true; }
 
-  virtual const char* GetIDEVersion() = 0;
+  virtual const char* GetIDEVersion() const = 0;
 
   bool ComputeTargetDepends() override;
   class VSDependSet : public std::set<std::string>