Package: libpugixml-dev Version: 1.9-2 Severity: normal Dear Maintainer,
The libpugixml-dev package installs the file pugixml-config.cmake in the /usr/share/libpugixml-dev/cmake/ folder. It should be possible to find the pugixml library from CMake with find_package(pugixml) Unfortunately, this path is not in the list of directories searched by CMake (see [1]) It is still possible to find it, but it requires to set the pugixml_DIR environment variable to /usr/share/libpugixml-dev/cmake or to pass -Dpugixml_DIR=/usr/share/libpugixml-dev/cmake when running cmake. Anyway, the file contains some unexistent paths (/usr/lib/<triplet>/cmake/pugixml) and the number lines like this get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) is wrong for the current path (4 instead of 3). As a consequence, the _IMPORT_PREFIX variable becomes "/" and therefore the target location points to /lib/x86_64-linux-gnu/libpugixml.so.1.9 instead of /usr/lib/x86_64-linux-gnu/libpugixml.so.1.9, that is not a valid path (unless usrmerge is installed but this is not the default yet) A better places to install this file /usr/lib/<triplet>/cmake/pugixml Thanks, Daniele [1]https://cmake.org/cmake/help/v3.14/command/find_package.html#search-procedure -- System Information: Debian Release: 10.0 APT prefers testing APT policy: (900, 'testing'), (500, 'stable'), (300, 'unstable'), (150, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libpugixml-dev depends on: ii libpugixml1v5 1.9-2 libpugixml-dev recommends no packages. libpugixml-dev suggests no packages. -- no debconf information