We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b546ed0 commit 56e2c2cCopy full SHA for 56e2c2c
turtlebot3_panorama/CMakeLists.txt
@@ -16,6 +16,18 @@ if(DEFINED ENV{ROS_DISTRO})
16
set(ROS_DISTRO $ENV{ROS_DISTRO})
17
endif()
18
19
+if(NOT DEFINED ROS_DISTRO OR ROS_DISTRO STREQUAL "")
20
+ execute_process(
21
+ COMMAND printenv ROS_DISTRO
22
+ OUTPUT_VARIABLE ROS_DISTRO
23
+ OUTPUT_STRIP_TRAILING_WHITESPACE
24
+ )
25
+endif()
26
+
27
28
+ message(WARNING "ROS_DISTRO is not defined.")
29
30
31
if(ROS_DISTRO STREQUAL "humble")
32
add_definitions(-DROS2_HUMBLE)
33
elseif(ROS_DISTRO STREQUAL "jazzy" OR ROS_DISTRO STREQUAL "rolling")
0 commit comments