浏览代码

cmTarget: Make GetInterfaceLinkLibraries const.

Stephen Kelly 12 年之前
父节点
当前提交
36e31cd127
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Source/cmTarget.cxx
  2. 1 1
      Source/cmTarget.h

+ 1 - 1
Source/cmTarget.cxx

@@ -811,7 +811,7 @@ void cmTarget::GetDirectLinkLibraries(const char *config,
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
 void cmTarget::GetInterfaceLinkLibraries(const char *config,
 void cmTarget::GetInterfaceLinkLibraries(const char *config,
-                            std::vector<std::string> &libs, cmTarget *head)
+                        std::vector<std::string> &libs, cmTarget *head) const
 {
 {
   const char *prop = this->GetProperty("INTERFACE_LINK_LIBRARIES");
   const char *prop = this->GetProperty("INTERFACE_LINK_LIBRARIES");
   if (prop)
   if (prop)

+ 1 - 1
Source/cmTarget.h

@@ -186,7 +186,7 @@ public:
                               cmTarget const* head) const;
                               cmTarget const* head) const;
   void GetInterfaceLinkLibraries(const char *config,
   void GetInterfaceLinkLibraries(const char *config,
                               std::vector<std::string> &,
                               std::vector<std::string> &,
-                              cmTarget *head);
+                              cmTarget *head) const;
 
 
   /** Compute the link type to use for the given configuration.  */
   /** Compute the link type to use for the given configuration.  */
   LinkLibraryType ComputeLinkType(const char* config) const;
   LinkLibraryType ComputeLinkType(const char* config) const;