Bug#1069023: Using the library with cmake fails because of wrong path calculation in apriltagTargets.cmake

Thorsten Jordan thorsten.jordan at atlascopco.com
Mon Apr 15 09:34:07 BST 2024


Package: libapriltag-dev
Version: 3.3.0-2.1

When using the library with cmake it doesn't work, because the file is placed one level of directories deeper than are unwinded in the cmake file.

See the patch below that fixes it.

--- /usr/lib/x86_64-linux-gnu/cmake/apriltag/apriltagTargets.cmake	2024-01-05 17:49:51.000000000 +0000
+++ /usr/lib/x86_64-linux-gnu/cmake/apriltag/apriltagTargets.cmake	2024-02-14 09:40:27.219443228 +0000
@@ -49,10 +49,11 @@
 # Compute the installation prefix relative to this file.
 get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
 if(_IMPORT_PREFIX STREQUAL "/")
   set(_IMPORT_PREFIX "")
 endif()
 
 # Create imported target apriltag::apriltag



More information about the debian-science-maintainers mailing list