Skip to content

Commit

Permalink
Add missing GZ_VERSION ticktocks (#289)
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <methylDragon@gmail.com>

Signed-off-by: methylDragon <methylDragon@gmail.com>
  • Loading branch information
methylDragon authored and mjcarroll committed Sep 22, 2022
1 parent 5b231bc commit f3fe69e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ros_gz_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ find_package(yaml_cpp_vendor REQUIRED)
# TODO(CH3): Deprecated. Remove on tock.
if("$ENV{GZ_VERSION}" STREQUAL "" AND NOT "$ENV{IGNITION_VERSION}" STREQUAL "")
message(DEPRECATION "Environment variable [IGNITION_VERSION] is deprecated. Use [GZ_VERSION] instead.")
set(ENV{GZ_VERSION} ENV{IGNITION_VERSION})
set(ENV{GZ_VERSION} $ENV{IGNITION_VERSION})
endif()

# Edifice
Expand Down
3 changes: 1 addition & 2 deletions ros_gz_image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ find_package(ros_gz_bridge REQUIRED)
find_package(rclcpp REQUIRED)
find_package(sensor_msgs REQUIRED)


# TODO(CH3): Deprecated. Remove on tock.
if("$ENV{GZ_VERSION}" STREQUAL "" AND NOT "$ENV{IGNITION_VERSION}" STREQUAL "")
message(DEPRECATION "Environment variable [IGNITION_VERSION] is deprecated. Use [GZ_VERSION] instead.")
set(ENV{GZ_VERSION} ENV{IGNITION_VERSION})
set(ENV{GZ_VERSION} $ENV{IGNITION_VERSION})
endif()

# Edifice
Expand Down
6 changes: 6 additions & 0 deletions ros_gz_shims/ros_ign_gazebo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ ament_export_dependencies(
ros_gz_bridge
)

# TODO(CH3): Deprecated. Remove on tock.
if("$ENV{GZ_VERSION}" STREQUAL "" AND NOT "$ENV{IGNITION_VERSION}" STREQUAL "")
message(DEPRECATION "Environment variable [IGNITION_VERSION] is deprecated. Use [GZ_VERSION] instead.")
set(ENV{GZ_VERSION} $ENV{IGNITION_VERSION})
endif()

# Edifice
if("$ENV{GZ_VERSION}" STREQUAL "edifice")
find_package(ignition-gazebo5 REQUIRED)
Expand Down

0 comments on commit f3fe69e

Please sign in to comment.