diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-03-16 09:07:30 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-04 15:03:14 -0700 |
commit | 5e192f3c6f9793dac0a8c2ddabd5a77003351bed (patch) | |
tree | 87f6dbbf0c0cd34c61fa21893f2955decb8e046f /cmake/Modules/FindLibdivecomputer.cmake | |
parent | c0421ab637cdf228aa39e77294076b2adb4324eb (diff) | |
download | subsurface-5e192f3c6f9793dac0a8c2ddabd5a77003351bed.tar.gz |
build-system: try to find libdivecomputer on LGTM
On LGTM we end up installing in /opt/out.
Also, fix a silly error in the existing code - don't look for libraries in
include directories.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'cmake/Modules/FindLibdivecomputer.cmake')
-rw-r--r-- | cmake/Modules/FindLibdivecomputer.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/Modules/FindLibdivecomputer.cmake b/cmake/Modules/FindLibdivecomputer.cmake index c9cb4ce80..60c20ebc1 100644 --- a/cmake/Modules/FindLibdivecomputer.cmake +++ b/cmake/Modules/FindLibdivecomputer.cmake @@ -22,6 +22,7 @@ HINTS ${CMAKE_CURRENT_SOURCE_DIR}/../libdivecomputer/include/ /usr/local/include /usr/include + /opt/out/include ) FIND_LIBRARY( LIBDIVECOMPUTER_LIBRARIES @@ -31,8 +32,9 @@ NAMES HINTS ${CMAKE_CURRENT_SOURCE_DIR}/../install-root/lib ${CMAKE_CURRENT_SOURCE_DIR}/../libdivecomputer/src/.libs/ - /usr/local/include - /usr/include + /usr/local/lib + /usr/lib + /opt/out/lib ) INCLUDE( FindPackageHandleStandardArgs ) |