瀏覽代碼

BUG: Fix find_* search order with path suffixes

In cmFindBase we were searching all path suffixes appended to all paths
before considering the paths without any suffixes.  Instead we should
consider each path with and without suffixes before moving to the next
path.  See issue #7783.
Brad King 17 年之前
父節點
當前提交
c1075aef7b
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      Source/cmFindBase.cxx

+ 1 - 7
Source/cmFindBase.cxx

@@ -489,13 +489,7 @@ void cmFindBase::AddPathSuffixes()
       // later with lib being replaced for lib64 which may exist
       paths.push_back(p);
       }
-    }
-  // now put the path without the path suffixes in the SearchPaths
-  for(i = finalPath.begin();
-      i != finalPath.end(); ++i)
-    {
-    // put all search paths in because it may later be replaced
-    // by lib64 stuff fixes bug 4009
+    // now put the path without the path suffixes in the SearchPaths
     paths.push_back(*i);
     }
 }