mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Build system: correctly find libdivecomputer includes
Fully unsure when this got broken, but we tried to find the libdivecomputer includes based on the include file "hw.h". Interestingly, that file does not exisist (any more?) in libdivecomputer, so the search for the include fails. This is annoying, as the initial cmake fails on this in case of developer builds from QtCreator (which do not compile all dependencies like our home grown build scripts). The solution is simple: just find the includes for libdivecomputer based on exiting files in this lib. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
818ab36b24
commit
f9aa67a399
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ IF ( LIBDIVECOMPUTER_INCLUDE_DIR AND LIBDIVECOMPUTER_LIBRARIES )
|
|||
ENDIF ( LIBDIVECOMPUTER_INCLUDE_DIR AND LIBDIVECOMPUTER_LIBRARIES )
|
||||
|
||||
FIND_PATH( LIBDIVECOMPUTER_INCLUDE_DIR
|
||||
NAMES libdivecomputer/hw.h
|
||||
NAMES
|
||||
libdivecomputer/device.h
|
||||
libdivecomputer/descriptor.h
|
||||
HINTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../install-root/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../libdivecomputer/include/
|
||||
|
|
Loading…
Add table
Reference in a new issue