ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 2,219 times

Last updated: Jun 23 '20