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

ROS2 Colcon Option List

asked 2018-11-16 10:59:55 -0500

gmosem gravatar image

Dear all,

is there any place where I can find a detailed list of Colcon options? I usually go to different websites to find different options.

In particular I'm looking for any option to change the default installation directory. I'm currently using "-DCMAKE_INSTALL_PREFIX" cmake option but it doesn't seem to work for me.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-16 11:20:42 -0500

Dirk Thomas gravatar image

When passing --help to the command it will enumerate all available options. The documentation also describes a few use cases:

The argument you are trying to pass -DCMAKE_INSTALL_PREFIX=... is a CMake option and therefore would need to be passed as --cmake-args -DCMAKE_INSTALL_PREFIX=.... But this specific argument won't work as you would expect it since colcon already passes that argument for you (since CMakes default would be to install the package globally into the system which isn't usually desired).

You can choose the install location by passing --install-base ... instead. For CMake packages that will effectively set -DCMAKE_INSTALL_PREFIX=... and for other package types - e.g. Python packages - will do the equivalent option.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-11-16 10:59:55 -0500

Seen: 522 times

Last updated: Nov 16 '18