mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-30 18:50:11 +08:00
Improved libboost detection again
This commit is contained in:
parent
b4fa164dc3
commit
37650d8156
2
configure
vendored
2
configure
vendored
@ -398,7 +398,7 @@ public:
|
|||||||
QString name;
|
QString name;
|
||||||
QDir libDir(path);
|
QDir libDir(path);
|
||||||
QStringList filters;
|
QStringList filters;
|
||||||
filters << "libboost_"+lib+"*-mt.so";
|
filters << "libboost_"+lib+"*-mt*.so";
|
||||||
QStringList result = libDir.entryList(filters, QDir::Files);
|
QStringList result = libDir.entryList(filters, QDir::Files);
|
||||||
if(!result.empty()) {
|
if(!result.empty()) {
|
||||||
name = result.first().mid(3);
|
name = result.first().mid(3);
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
QString name;
|
QString name;
|
||||||
QDir libDir(path);
|
QDir libDir(path);
|
||||||
QStringList filters;
|
QStringList filters;
|
||||||
filters << "libboost_"+lib+"*-mt.so";
|
filters << "libboost_"+lib+"*-mt*.so";
|
||||||
QStringList result = libDir.entryList(filters, QDir::Files);
|
QStringList result = libDir.entryList(filters, QDir::Files);
|
||||||
if(!result.empty()) {
|
if(!result.empty()) {
|
||||||
name = result.first().mid(3);
|
name = result.first().mid(3);
|
||||||
|
Loading…
Reference in New Issue
Block a user