summaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r--subsurface-configure.pri9
1 files changed, 8 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index 712b2272a..dff3b6f7d 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -126,7 +126,14 @@ LIBS *= $$XSLT_LIBS $$XML2_LIBS
# We're searching for:
# libzip
# sqlite3
-link_pkgconfig: PKGCONFIG += libzip sqlite3 libgit2
+link_pkgconfig: PKGCONFIG += libzip sqlite3
+
+isEmpty(LIBGIT2DEVEL) {
+ PKGCONFIG += libgit2
+} else {
+ INCLUDEPATH += $$LIBGIT2DEVEL/include
+ LIBS += -L$$LIBGIT2DEVEL/build -lgit2 -lz -lcrypto
+}
# Add libiconv if needed
link_pkgconfig: packagesExist(libiconv): PKGCONFIG += libiconv