mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Do not display a warning when libtorrent < 0.14.x is detected since it is the advised version
This commit is contained in:
7
configure
vendored
7
configure
vendored
@@ -364,10 +364,11 @@ public:
|
|||||||
conf->addIncludePath(incs[n]);
|
conf->addIncludePath(incs[n]);
|
||||||
//if(!libs.isEmpty())
|
//if(!libs.isEmpty())
|
||||||
// conf->addLib(libs);
|
// conf->addLib(libs);
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other))
|
if(conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other)) {
|
||||||
printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
//printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
||||||
else
|
//else
|
||||||
conf->addDefine("LIBTORRENT_0_15");
|
conf->addDefine("LIBTORRENT_0_15");
|
||||||
|
}
|
||||||
// Get linking parameters
|
// Get linking parameters
|
||||||
//QStringList params;
|
//QStringList params;
|
||||||
//QByteArray staticlibs;
|
//QByteArray staticlibs;
|
||||||
|
|||||||
@@ -22,10 +22,11 @@ public:
|
|||||||
conf->addIncludePath(incs[n]);
|
conf->addIncludePath(incs[n]);
|
||||||
//if(!libs.isEmpty())
|
//if(!libs.isEmpty())
|
||||||
// conf->addLib(libs);
|
// conf->addLib(libs);
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other))
|
if(conf->findPkgConfig("libtorrent-rasterbar", mode, adv_ver, &version, &incs, &libs, &other)) {
|
||||||
printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
//printf("\nWarning: libtorrent-rasterbar v%s was detected. Some feature will be disabled because they require v%s.\n", version.toLocal8Bit().data(), adv_ver.toUtf8().data());
|
||||||
else
|
//else
|
||||||
conf->addDefine("LIBTORRENT_0_15");
|
conf->addDefine("LIBTORRENT_0_15");
|
||||||
|
}
|
||||||
// Get linking parameters
|
// Get linking parameters
|
||||||
//QStringList params;
|
//QStringList params;
|
||||||
//QByteArray staticlibs;
|
//QByteArray staticlibs;
|
||||||
|
|||||||
Reference in New Issue
Block a user