ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

print cmakelist variable

asked 2016-02-07 16:20:02 -0500

rnunziata gravatar image

How can I print the contents of a variable in CMakelists

eg: link_directories(${ZED_LIBRARY_DIR})

I want to print ZED_LIBRARY_DIR

I tried

MESSAGE( STATUS "xxxx:" ${ZED_INCLUDE_DIRS})

but get no output, thank you for help. I can not seem to find documentation that talks about doing this.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-02-07 16:52:25 -0500

rnunziata gravatar image

I got around this by passing -d option on catkin_make and grepping for output.

edit flag offensive delete link more

Comments

Hi! Do you know the option to print the message with catkin build?

JohnDoe gravatar image JohnDoe  ( 2023-07-28 21:49:54 -0500 )edit
1

answered 2020-06-23 21:55:58 -0500

Rufus gravatar image

In my case (using colcon), in addition to changing the log level to debug (via colcon --log-level=debug build), I had to also change the message from STATUS to WARNING before my message appeared.

In order to grep, make sure you redirect the output from stderr to stdout (colcon --log-level=debug build 2>&1)

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-02-07 16:20:02 -0500

Seen: 2,510 times

Last updated: Jun 23 '20