From 8b2287e4f64cf8895104e87b435018c98c3eb97b Mon Sep 17 00:00:00 2001 From: Jacob Dahl Date: Thu, 21 May 2026 18:02:49 -0600 Subject: [PATCH] fix(cmake): register package via ament_package() in ROS 2 builds The ament branch sets COMPILING_WITH_AMENT, finds ament_cmake/plotjuggler, and installs the .so, but never calls ament_package(). Without it, colcon doesn't emit local_setup.bash and the package never lands on AMENT_PREFIX_PATH after sourcing install/setup.bash. The catkin branch already calls catkin_package() on line 52; this restores parity. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6701e9b..28c6f05 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,3 +101,7 @@ install( DataAPBin DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY} ) + +if (COMPILING_WITH_AMENT) + ament_package() +endif()