From the documentation, I see that colcon allows one to specify different build (--build-base
) and install directories (--install-base
):
https://colcon.readthedocs.io/en/released/reference/verb/build.html
But is it also possible to specify a different src directory? or is the name src
hardcoded? It seems like there should be an option like --src-base
, but I don't see that anywhere in the docs.
You are looking for
colcon build --paths <package_path>
.The
--build-base
will change the path where thebuild
folder from the workspace will be placed.