Skip to content

Commit

Permalink
Attempt to fix compatibility with libboost v1.34
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Dumez committed Apr 7, 2010
1 parent 37650d8 commit e439941
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ arg: with-libboost-inc=[path], Path to libboost include files
arg: with-libboost-lib=[path], Path to libboost library files
-----END QCMOD-----
*/
#include <boost/version.hpp>
class qc_libboost : public ConfObj
{
public:
Expand Down Expand Up @@ -451,7 +452,11 @@ public:
// Find library
s = conf->getenv("QC_WITH_LIBBOOST_LIB");
QStringList required_libs;
required_libs << "system" << "filesystem" << "thread";
required_libs
#if BOOST_VERSION >= 103500
<< "system"
#endif
<< "filesystem" << "thread";
QStringList libDirs;
libDirs << "/usr/lib/" << "/usr/lib64/" << "/usr/local/lib/" << "/usr/local/lib64/";
foreach(const QString& lib, required_libs) {
Expand Down
7 changes: 6 additions & 1 deletion qcm/libboost.qcm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ arg: with-libboost-inc=[path], Path to libboost include files
arg: with-libboost-lib=[path], Path to libboost library files
-----END QCMOD-----
*/
#include <boost/version.hpp>
class qc_libboost : public ConfObj
{
public:
Expand Down Expand Up @@ -68,7 +69,11 @@ public:
// Find library
s = conf->getenv("QC_WITH_LIBBOOST_LIB");
QStringList required_libs;
required_libs << "system" << "filesystem" << "thread";
required_libs
#if BOOST_VERSION >= 103500
<< "system"
#endif
<< "filesystem" << "thread";
QStringList libDirs;
libDirs << "/usr/lib/" << "/usr/lib64/" << "/usr/local/lib/" << "/usr/local/lib64/";
foreach(const QString& lib, required_libs) {
Expand Down

0 comments on commit e439941

Please sign in to comment.