aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-07 09:23:42 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-07 09:23:42 -0800
commit3b1624ec69ff8cc7332d080e89e71e7e9462c76e (patch)
tree8faa22aee886d467095f23cc41409914c94a3ea7 /subsurface-configure.pri
parent00c97e710f0090b3a2a8d5fe5b92e5ac0207a4b9 (diff)
downloadsubsurface-3b1624ec69ff8cc7332d080e89e71e7e9462c76e.tar.gz
Add a workaround for using post 0.20 git versions of libgit2
Add the following to your qmake command line and things should compile again: qmake ... CONFIG+=libgit21-api Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r--subsurface-configure.pri5
1 files changed, 4 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index a211113b2..712b2272a 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -5,7 +5,7 @@
# - calling implicit functions
# - casting from integers to pointers or vice-versa without an explicit cast
# Also turn on C99 mode with GNU extensions
-*-g++*: QMAKE_CFLAGS += -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=implicit-int
+*-g++*: QMAKE_CFLAGS += -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=implicit-int
# these warnings are in general just wrong and annoying - but should be
# turned on every once in a while in case they do show the occasional
@@ -140,6 +140,9 @@ link_pkgconfig: packagesExist(libiconv): PKGCONFIG += libiconv
win32: CONFIG(debug, debug|release): LIBS += -lmarblewidgetd
else: LIBS += -lmarblewidget
+libgit21-api {
+ DEFINES += USE_LIBGIT21_API
+}
#
# Platform-specific changes
#