related to #1477, add extension filter when matching lib names.

This commit is contained in:
Syl 2014-09-02 23:42:55 +02:00
parent a112808610
commit e0d6bcd1bb
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ def boost_get_libs(self, *k, **kw):
def find_lib(re_lib, files):
for file in files:
if re_lib.search(file.name):
if file.name.endswith(('.a', '.so', '.dylib', '.lib', '.dll')) and re_lib.search(file.name):
self.to_log('Found boost lib %s' % file)
return file
return None