Reputation: 7367
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.
Upvotes: 1
Views: 1209
Reputation: 148
Simply using a directory that's not named src/
doesn't require any arguments, by default colcon will recursively search for packages in the current directory.
You can specify a specific directory with --base-paths
and/or add an empty file named COLCON_IGNORE to your other directories that should be ignored.
https://colcon.readthedocs.io/en/released/reference/discovery-arguments.html
Upvotes: 0
Reputation: 1197
You are looking for colcon build --paths <package_path>
.
The --build-base
will change the path where the build
folder from the workspace will be placed.
Upvotes: 2