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

Reply via email to