Package: libgmic-dev
Version: 2.9.4-4.2+b2
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
Any CMake project that calls find_package(Gmic) fails at the generate step
with:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/gmic/GmicTargets.cmake:71
(set_target_properties):
The link interface of target "libgmic" contains:
CImg::CImg
but the target was not found.
GmicTargets.cmake exports libgmic with CImg::CImg in its link interface, but
no package on the system provides that imported target, and GmicConfig.cmake
does not call find_package for it. Installing cimg-dev does not help --
cimg-dev ships the header only, not a CMake config defining CImg::CImg.
This makes libgmic-dev unusable for linking against system G'MIC from CMake.
Steps to reproduce:
1. sudo apt install libgmic-dev
2. Create a CMakeLists.txt containing:
cmake_minimum_required(VERSION 3.20)
project(t)
find_package(Gmic REQUIRED)
3. cmake -S . -B build
Expected: configuration succeeds.
Actual: fails as above.
I hit this while building the G'MIC-Qt plugin for Krita with
-DENABLE_SYSTEM_GMIC=ON. Building the engine from upstream source works, so
the problem is confined to the CMake export in the Debian package.
Possible fixes: ship a CMake config for CImg providing the CImg::CImg target,
add a find_dependency() call in GmicConfig.cmake, or drop CImg::CImg from the
exported link interface if the dependency is header-only and already handled
via include directories.
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (500, 'testing'), (110, 'unstable'), (3, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.1.8+deb14.1-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_GB.UTF-8), LANGUAGE=en_GB
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libgmic-dev depends on:
ii libgmic1 2.9.4-4.2+b2
libgmic-dev recommends no packages.
libgmic-dev suggests no packages.
-- no debconf information