← All tasks
cppsubsurface/subsurface #4521Not a task: not reproduced

[Bug]: Cmake serch path for libdivecomputer does not match submodule configuration

envgap__subsurface__subsurface-4521

01 / FAILURE SIGNATURE

As reported upstream

Then come the error:
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
e9989555c303fa4c53a03d9914d762c50831389d
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

subsurface/subsurface #4521 · read the original issue
### Description

FindLibdivecomputer.cmake search path for include and librairies assumes subsurface and libdivecomputer are cloned in the same parent folder, which does not match the gitmodules settings that create a libdivecomputer under the subsurface folder.

### Subsurface Version

6008bfe9276f5f69ae509ca70bb30c3c8363538b

### Platform(s)

Linux

### Platform Version

Fedora 40

### Divecomputer Model

_No response_

### Steps to Reproduce

`git clone https://github.com/subsurface/subsurface.git`
`cd subsurface`
`git submodule update --init --recursive`
`cd libdivecomputer`
`autoreconf --install`
`./configure`
`make`
`cd ..`
`mkdir build`
`cd build`
`cmake ..`

Then come the error:
`CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Libdivecomputer (missing: LIBDIVECOMPUTER_INCLUDE_DIR
  LIBDIVECOMPUTER_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindLibdivecomputer.cmake:39 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/Modules/HandleFindLibDiveComputer.cmake:5 (find_package)
  CMakeLists.txt:149 (include)
`


### Logs

```shell

```

### Mentions

_No response_
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]