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

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


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

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


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

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



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

Seen: 2,643 times

Last updated: Jun 23 '20