Skip to content

Commit

Permalink
CMakeLists.txt: check both kinetic and indigo
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 10, 2024
1 parent b372ea6 commit 064068d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8.3)
project(jsk_interactive_marker)

if("$ENV{ROS_DISTRO}" STREQUAL "kinetic")
if(("$ENV{ROS_DISTRO}" STREQUAL "kinetic") OR ("$ENV{ROS_DISTRO}" STREQUAL "indigo"))
# catch special case ROS kinetic where c++11 is not the default yet
add_compile_options(-std=c++11)
endif()
Expand Down
2 changes: 1 addition & 1 deletion jsk_rviz_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
cmake_minimum_required(VERSION 2.8.3)
project(jsk_rviz_plugins)
if("$ENV{ROS_DISTRO}" STREQUAL "kinetic")
if(("$ENV{ROS_DISTRO}" STREQUAL "kinetic") OR ("$ENV{ROS_DISTRO}" STREQUAL "indigo"))
# catch special case ROS kinetic where c++11 is not the default yet
add_compile_options(-std=c++11)
endif()
Expand Down

0 comments on commit 064068d

Please sign in to comment.