aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-16 20:17:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-04 15:03:40 -0700
commit72f37f14c62d9c7bc7f657e730e3ab6b6721b830 (patch)
tree93f3a8313997a6171bdb86b4100f3f44ccf7d48a
parent5e192f3c6f9793dac0a8c2ddabd5a77003351bed (diff)
downloadsubsurface-72f37f14c62d9c7bc7f657e730e3ab6b6721b830.tar.gz
build-system: explicitly add libgit2 dependencies for LGTM
For some reason on LGTM these two libraries aren't automatically added to the link line for Subsurface. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b431fd114..6d2e1141e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -269,6 +269,11 @@ endif()
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${LIBDIVECOMPUTER_LIBRARIES} ${LIBGIT2_LIBRARIES} ${LIBUSB_LIBRARIES})
qt5_add_resources(SUBSURFACE_RESOURCES subsurface.qrc map-widget/qml/map-widget.qrc)
+# hack to build successfully on LGTM
+if(DEFINED ENV{LGTM_SRC})
+ set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lgssapi_krb5 -lhttp_parser)
+endif()
+
# include translations
add_subdirectory(translations)
add_subdirectory(core)