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

Revision history [back]

click to hide/show revision 1
initial version

Please see the colcon documentation about colcon.pkg files: https://colcon.readthedocs.io/en/released/user/configuration.html#colcon-pkg-files

If you would pass the argument on the command line you would involve it with --cmake-args -DCMAKE_TOOLCHAIN_FILE=.... therefore your yaml file must look like this:

{
  "cmake-args": ["-DCMAKE_TOOLCHAIN_FILE=..."]
}