Browse Source

cmMakefile: Remove useless link directory container

It is never populated - a find will never find anything.
Stephen Kelly 9 years ago
parent
commit
3e8d47d18b
2 changed files with 1 additions and 7 deletions
  1. 1 4
      Source/cmMakefile.cxx
  2. 0 3
      Source/cmMakefile.h

+ 1 - 4
Source/cmMakefile.cxx

@@ -1857,10 +1857,7 @@ void cmMakefile::AddGlobalLinkInformation(const std::string& name,
       if (*j->rbegin() == '/') {
       if (*j->rbegin() == '/') {
         newdir = j->substr(0, j->size() - 1);
         newdir = j->substr(0, j->size() - 1);
       }
       }
-      if (std::find(this->LinkDirectories.begin(), this->LinkDirectories.end(),
-                    newdir) == this->LinkDirectories.end()) {
-        target.AddLinkDirectory(*j);
-      }
+      target.AddLinkDirectory(*j);
     }
     }
   }
   }
 
 

+ 0 - 3
Source/cmMakefile.h

@@ -805,9 +805,6 @@ protected:
   // Tests
   // Tests
   std::map<std::string, cmTest*> Tests;
   std::map<std::string, cmTest*> Tests;
 
 
-  // The link-library paths.  Order matters, use std::vector (not std::set).
-  std::vector<std::string> LinkDirectories;
-
   // The set of include directories that are marked as system include
   // The set of include directories that are marked as system include
   // directories.
   // directories.
   std::set<std::string> SystemIncludeDirectories;
   std::set<std::string> SystemIncludeDirectories;