Skip to content

Commit

Permalink
Add a dependency on ros_environment to ensure ROS_VERSION is set
Browse files Browse the repository at this point in the history
  • Loading branch information
poggenhans committed Jul 31, 2020
1 parent c607eec commit 72986c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.0.2)
project(mrt_cmake_modules)


if($ENV{ROS_VERSION} EQUAL 1)
find_package(catkin REQUIRED)
catkin_package(CFG_EXTRAS mrt_cmake_modules-extras.cmake)
Expand Down
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake_core</buildtool_depend>
<buildtool_depend>ros_environment</buildtool_depend>
<buildtool_export_depend>ros_environment</buildtool_export_depend>
<buildtool_export_depend>lcov</buildtool_export_depend>
<buildtool_export_depend condition="$ROS_PYTHON_VERSION == 2">python-catkin-pkg-modules</buildtool_export_depend>
<buildtool_export_depend condition="$ROS_PYTHON_VERSION == 3">python3-catkin-pkg-modules</buildtool_export_depend>
Expand Down

0 comments on commit 72986c6

Please sign in to comment.