summaryrefslogtreecommitdiff
path: root/comms/svxlink/files/patch-src_async_qt_CMakeLists.txt
blob: 1dae1a938491a718bdd665548280e7d42697ed8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/async/qt/CMakeLists.txt.orig	2019-03-12 00:30:56 UTC
+++ src/async/qt/CMakeLists.txt
@@ -6,7 +6,12 @@ set(LIBSRC AsyncQtApplication.cpp AsyncQtDnsLookupWork
 
 set(QTHEADERS AsyncQtApplication.h AsyncQtTimer.h AsyncQtDnsLookupWorker.h)
 
-set(LIBS ${LIBS} asynccore)
+if(QT_ONLY)
+find_library(ASYNCCORE_LIB asynccore ${LIB_INSTALL_DIR})
+set(LIBS ${LIBS} ${ASYNCCORE_LIB})
+else(QT_ONLY)
+ set(LIBS ${LIBS} asynccore)
+endif(QT_ONLY)
 
 # Copy exported include files to the global include directory
 foreach(incfile ${EXPINC})