-
Notifications
You must be signed in to change notification settings - Fork 839
Open
Labels
Description
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)
andcmake_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