Unoffical gentoo overlay for twister
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
846 B

diff --git a/twister-qt.pro b/twister-qt.pro
index 841791f..070c480 100644
--- a/twister-qt.pro
+++ b/twister-qt.pro
@@ -452,8 +452,13 @@ LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
# -lgdi32 has to happen after -lcrypto (see #681)
win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
-win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
-macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
+
+contains(USE_BOOST_46,1) {
+ message(Building with boost 1.4.6. Excluding chrono library.)
+} else {
+ message(Building with boost over 1.4.6. Including chrono library.)
+ LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
+}
contains(RELEASE, 1) {
!win32:!macx {