ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Is it possible to make a menu within a catkin build?

asked 2015-05-22 22:05:08 -0500

Nap gravatar image

I'ld like to be able choose my build options during the catkin_make process. I know it can be done using a bash script, but I'm wondering if it can be done within catkin?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-22 23:09:59 -0500

ahendrix gravatar image

You can do this by adding cmake configuration variables to your cmakelists, like this:

Note that these won't (and shouldn't) prompt you for input at build time; instead, you can set the value of these variables using the -D flag to catkin_make (or cmake):

catkin_make -DMY_VARIABLE=42
edit flag offensive delete link more


Thanks, I'm already doing that. But I wanted to make it a little easier so the users wouldn't need to remember/type the variables.

Nap gravatar image Nap  ( 2015-05-23 02:26:24 -0500 )edit

Making the build system interactive for every run is probably more annoying than useful. I haven't tried the -i option to cmake, but perhaps it's appropriate in this scenario?

ahendrix gravatar image ahendrix  ( 2015-05-24 02:31:20 -0500 )edit

The -i option has been removed from cmake as of version 3 onwards.

Nap gravatar image Nap  ( 2015-05-28 02:26:05 -0500 )edit

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: 2015-05-22 22:05:08 -0500

Seen: 100 times

Last updated: May 22 '15