mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 02:36:23 -04:00
Use PKGCONFIG instead of manually specifying LIBS for Linux
- The advantage is that this method automatically includes additional dependencies of LIBS (e.g. libupnp needs -lixml). - Also if some distribution moves headers to non default locations the correct locations get added by PKGCONFIG
This commit is contained in:
parent
b8e3a434cf
commit
66b9557833
8 changed files with 34 additions and 38 deletions
|
@ -81,12 +81,9 @@ TRANSLATIONS += \
|
|||
lang/FeedReader_zh_CN.ts
|
||||
|
||||
linux-* {
|
||||
LIBXML2_DIR = /usr/include/libxml2
|
||||
CONFIG += link_pkgconfig
|
||||
|
||||
DEPENDPATH += $${LIBXML2_DIR}
|
||||
INCLUDEPATH += $${LIBXML2_DIR}
|
||||
|
||||
LIBS += -lcurl -lxml2 -lxslt
|
||||
PKGCONFIG *= libcurl libxml-2.0 libxslt
|
||||
}
|
||||
|
||||
win32 {
|
||||
|
@ -102,4 +99,3 @@ openbsd-* {
|
|||
|
||||
LIBS += -lcurl -lxml2 -lxslt
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue