From 4dd6b826348ca5cdaaa3deba881bc4fe02595589 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 16 Mar 2019 20:17:07 -0700 Subject: 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 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e57c1118a..2c54dc473 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -276,6 +276,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) -- cgit v1.2.3-70-g09d2