Skip to content

Fix: Missing ament_cmake_ros Dependency - #391

Merged
amock merged 2 commits into
ros2from
fix/ament-cmake-ros
Jul 22, 2026
Merged

Fix: Missing ament_cmake_ros Dependency#391
amock merged 2 commits into
ros2from
fix/ament-cmake-ros

Conversation

@amock

@amock amock commented Jul 22, 2026

Copy link
Copy Markdown
Member

Original issue was: Jenkins build failed because ament_cmake_ros was written in the CMakeLists.txt but not in the package.xml. So there are two options to fix that:

  1. add missing ament_cmake_ros to package.xml
  2. change ament_cmake_ros to ament_cmake in CMakeLists.txt

I decided to go for option 2 if the package is not using any feature of ament_cmake_ros. That is the case for every package, so I replaced every ament_cmake_ros dependency with ament_cmake. Problem was, ament_cmake_ros silently sets the build of a library to SHARED. So just replacing it changes the build process. Therefore I added the explicit SHARED keyword to all the libraries that didn't have it yet.

Additionally, I did some consistency cleanups and removed obsolete things from the CMakeLists.

@amock
amock requested a review from GeorgJohn as a code owner July 22, 2026 14:12
@amock
amock removed the request for review from GeorgJohn July 22, 2026 14:13
@amock
amock merged commit a5ce7be into ros2 Jul 22, 2026
3 checks passed
@amock
amock deleted the fix/ament-cmake-ros branch July 22, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant