Skip to content

fix: discover tinyxml2 via tinyxml2_vendor for cross-distro builds#2

Merged
rxdu merged 1 commit into
mainfrom
fix/humble-tinyxml2-discovery
Jun 1, 2026
Merged

fix: discover tinyxml2 via tinyxml2_vendor for cross-distro builds#2
rxdu merged 1 commit into
mainfrom
fix/humble-tinyxml2-discovery

Conversation

@rxdu
Copy link
Copy Markdown
Owner

@rxdu rxdu commented May 31, 2026

find_package(tinyxml2) only works where the system ships tinyxml2's CMake config (Ubuntu 24.04 / Jazzy) but not on 22.04 (Humble), whose libtinyxml2-dev 9.0 has none. Find tinyxml2 through tinyxml2_vendor (already a declared dependency), which prepends a FindTinyXML2 module and guarantees the tinyxml2::tinyxml2 target used by the ODR link fix. This is the same pattern ros2_control's hardware_interface uses. No behavior change on Jazzy.

find_package(tinyxml2) only works where the system ships tinyxml2's CMake
config (Ubuntu 24.04 / Jazzy) but not on 22.04 (Humble), whose
libtinyxml2-dev 9.0 has none. Find tinyxml2 through tinyxml2_vendor (already
a declared dependency), which prepends a FindTinyXML2 module and guarantees
the tinyxml2::tinyxml2 target used by the ODR link fix. This is the same
pattern ros2_control's hardware_interface uses. No behavior change on Jazzy.
@rxdu rxdu merged commit 2337f23 into main Jun 1, 2026
3 checks passed
@rxdu rxdu deleted the fix/humble-tinyxml2-discovery branch June 1, 2026 09:00
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