Public bug reported:

The '/usr/share/cmake/cereal/cerealTargets.cmake' file contains 4 times
the line 'get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}"
PATH´, while there should be only 3 of those.

As a result, any software trying to use cereal from cmake will raise a
'CMake Error' about 'Imported target "cereal::cereal" includes non-
existent path "/include" in its INTERFACE_INCLUDE_DIRECTORIES.'


A simple reproducer is attached as a Dockerfile. 
'sudo sed -i 55d /usr/share/cmake/cereal/cerealTargets.cmake` fix the issue.


This bug affect ubuntu 22.04 but not 24.04.


This issue was raised in https://github.com/Simple-Robotics/proxsuite/issues/503

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libcereal-dev 1.3.1+dfsg-1
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.10
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Nov 17 16:25:28 2026
Dependencies: rapidjson-dev 1.1.0+dfsg2-7
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
SourcePackage: libcereal
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: libcereal (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy

** Attachment added: "docker reproducer"
   https://bugs.launchpad.net/bugs/2174758/+attachment/6018907/+files/Dockerfile

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174758

Title:
  cmake export wrong include directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcereal/+bug/2174758/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to