Repository navigation
Ensure that find_package(TINYXML2) defines TINYXML2::TINYXML2 even on case insensitive filesystems - #22
Conversation
Signed-off-by: Silvio Traversaro <[email protected]>
Signed-off-by: Silvio Traversaro <[email protected]>
Signed-off-by: Silvio Traversaro <[email protected]>
|
@mjcarroll friendly ping (I just pinged you as you are assigned to the PR) |
|
Pulls: #22 |
|
Thanks @ahcorde ! |
|
@traversaro do we need to backport this ? |
Sorry, I lost this comment. On the RoboStack side we have patches for this locally, but I just found on LinkedIn a comment that explained to users how to manually modify the config files of gazebo packages to deal with this issue on Humble, see https://github.com/idesign0/ros2_macOS/tree/3a08d35c8e54ccb1bc79aaffef9b627ee9a4f59b?tab=readme-ov-file#errors . So I guess a backport to Humble/Jazzy would be useful for users, thanks a lot! fyi @idesign0 . |
|
@traversaro pleasure is all mine! :) |
We recently encountered this again in Humble/Jazzy with @Tobias-Fischer, so a backport would be indeed useful @ahcorde . As some time passed, let us know if you prefer that we open the backport as a separate new PR to the |
On case-insensitive filesystem, it is possible that FindTinyXML2.cmake is used if the caller invoked find_package(TINYXML2), that is the signature used by gz-cmake, see https://github.com/gazebosim/gz-cmake/blob/gz-cmake4_4.1.0/cmake/FindTINYXML2.cmake .
If that is the case (and we detect it by checking the value of CMAKE_FIND_PACKAGE_NAME) we also define a TINYXML2::TINYXML2 target for gz-cmake compatibility.
Without this fix, the configuration of
gz_ros2_controlon macOS when use a case insensitive filesystem fails with error: