Skip to content

Control shared/static typesupport libraries build via CMake variable (backport #138) - #148

Open
mergify[bot] wants to merge 1 commit into
humblefrom
mergify/bp/humble/pr-138
Open

Control shared/static typesupport libraries build via CMake variable (backport #138)#148
mergify[bot] wants to merge 1 commit into
humblefrom
mergify/bp/humble/pr-138

Conversation

@mergify

@mergify mergify Bot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Description

If my CMake project has set(BUILD_SHARED_LIBS OFF) to prefer libraries be built and linked statically, the typesupport libraries still need to be built as shared object since they are loaded at runtime. This PR adds an explicit SHARED declaration to the add_library calls to avoid static libraries being generated.

Is this user-facing behavior change?

Yes, but there should be no negative impact because these typesupport libraries are ALWAYS supposed to be shared objects.

Did you use Generative AI?

No

Additional Information

This change should be backported to humble, jazzy and kilted as well.


This is an automatic backport of pull request #138 done by Mergify.

Signed-off-by: Jay Sridharan <jsridharan@relativityspace.com>
Co-authored-by: Jay Sridharan <jsridharan@relativityspace.com>
(cherry picked from commit 82f41be)
@ahcorde

ahcorde commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Pulls: #148
Gist: https://gist.githubusercontent.com/ahcorde/70155de4d856e83829f683238e5d830c/raw/b0928288f9531b91a2a806fff6c51933382af92d/ros2.repos
BUILD args: --packages-above-and-dependencies rosidl_typesupport_fastrtps_c rosidl_typesupport_fastrtps_cpp
TEST args: --packages-above rosidl_typesupport_fastrtps_c rosidl_typesupport_fastrtps_cpp
ROS Distro: humble
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18572

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

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.

2 participants