Skip to content

Commit

Permalink
Support Gazebo Harmonic
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Dec 18, 2023
1 parent 89dd6a3 commit 6893c3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdformat_urdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ elseif("$ENV{GZ_VERSION}" STREQUAL "garden")
find_package(sdformat13 REQUIRED)
set(SDF_VER ${sdformat13_VERSION_MAJOR})
message(STATUS "Compiling against Gazebo Garden (libSDFormat 13)")
elseif("$ENV{GZ_VERSION}" STREQUAL "harmonic")
find_package(sdformat14 REQUIRED)
set(SDF_VER ${sdformat14_VERSION_MAJOR})
message(STATUS "Compiling against Gazebo Harmonic (libSDFormat 14)")
# No GZ distribution specified, find any version of libsdformat we can
else()
foreach(major RANGE 13 9)
Expand Down
2 changes: 2 additions & 0 deletions sdformat_urdf/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

<!-- Garden -->
<depend condition="$GZ_VERSION == garden">sdformat13</depend>
<!-- Harmonic -->
<depend condition="$GZ_VERSION == harmonic">sdformat14</depend>

<depend>urdf</depend>

Expand Down

0 comments on commit 6893c3d

Please sign in to comment.