Explorar o código

cmLocalGenerator: Constify target in API.

Stephen Kelly %!s(int64=10) %!d(string=hai) anos
pai
achega
f7738fd122
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      Source/cmLocalGenerator.cxx
  2. 1 1
      Source/cmLocalGenerator.h

+ 1 - 1
Source/cmLocalGenerator.cxx

@@ -1180,7 +1180,7 @@ void cmLocalGenerator::AddCompileOptions(
 
 //----------------------------------------------------------------------------
 void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs,
-                                             cmGeneratorTarget* target,
+                                             cmGeneratorTarget const* target,
                                              const std::string& lang,
                                              const std::string& config,
                                              bool stripImplicitInclDirs

+ 1 - 1
Source/cmLocalGenerator.h

@@ -171,7 +171,7 @@ public:
 
   /** Get the include flags for the current makefile and language.  */
   void GetIncludeDirectories(std::vector<std::string>& dirs,
-                             cmGeneratorTarget* target,
+                             cmGeneratorTarget const* target,
                              const std::string& lang = "C",
                              const std::string& config = "",
                              bool stripImplicitInclDirs = true) const;