#1146292 libc4core-dev: cmake/c4core/c4coreConfig.cmake is unusable

Package:
libc4core-dev
Source:
libc4core-dev
Description:
low-latency, low-level C++ library (development files)
Submitter:
Sébastien Noel
Date:
2026-08-31 08:47:06 UTC
Severity:
normal
#1146292#5
Date:
2026-08-31 08:44:52 UTC
From:
To:
Dear maintainer,

Upstream dev makes a number of assumption on the filesystem layout,
that cause failure on Debian systems.
In practice it means that the cmake files can't be used when
the library is installed in multiarch dirs.

A simple
   find_package(c4core REQUIRED)

would fail with:
   CMake Error at /usr/lib/x86_64-linux-gnu/cmake/c4core/c4coreConfig.cmake:14 (message):
     File or directory /usr/lib/include/ referenced by variable
     C4CORE_INCLUDE_DIR does not exist !


One "hack"/simple-solution is to tweak the upstream's assumption
with a simple patch like the one in attachement

The same problem will exist in src:rapidyaml when upgraded,
as it use the same "c4Project.cmake" file from the same upstream

Cheers,
Sébastien -- waiting for to dust to settle to upgrade another piece
              of software that depends on src:rapidyaml