Skip to content

apt installed version 2.0.1 include and lib path are not set by cmake #518

@Themaksiest

Description

@Themaksiest

After resent package update ros-humble-grid-map version 2.0.1 CMake fails to set library and include path for the library.
Could it be that after resent package update there are some issues with CMake files?

Steps to reproduce:

  • On clean Ubuntu 22.04 installation (or just apt upgrade and apt update in recent months) install grid map library with apt install ros-humble-grid-map
  • Create a project with a CMakeLists.txt and add find_package(grid_map_core REQUIRED)
  • Add print statements with include(CMakePrintHelpers) and cmake_print_variables(grid_map_core_INCLUDE_DIRS), cmake_print_variables(grid_map_core_LIBRARIES)
  • Source setup file with source /opt/ros/humble/setup.bash
  • run cmake

Resutling output:

-- Found grid_map_core: 2.0.1 (/opt/ros/humble/share/grid_map_core/cmake)

-- grid_map_core_INCLUDE_DIRS=""
-- grid_map_core_LIBRARIES=""

Unlike when the setup file is not sourced, this prints no errors, it just fails during build, because includes cannot be found.
I am using cmake version 3.31.6 so this might be the issue, but everything works fine when I compile grid_map version 2.3.0 from source

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions