Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About changing the default compilation method of colcon build #139

Open
Heyangq opened this issue May 9, 2024 · 2 comments
Open

About changing the default compilation method of colcon build #139

Heyangq opened this issue May 9, 2024 · 2 comments

Comments

@Heyangq
Copy link

Heyangq commented May 9, 2024

Now colcon build compilation should be used
cmake --build . --target install

I want to implement cmake --build . --target package
Generate the content I need to install as deb

All install content is generated in deb

How can I modify core to do this

Requirement: Multiple function packages in a workspace are compiled to generate a deb file

@Heyangq
Copy link
Author

Heyangq commented May 9, 2024

colcon Whether the related configuration can be implemented
What about the "cmake --build. --target package" function?

@cottsay
Copy link
Member

cottsay commented Jun 7, 2024

You might be able to do this with the --cmake-target option in colcon-cmake:

parser.add_argument(
'--cmake-target',
help='Build a specific target instead of the default target')

I'm transferring this issue to that package.

If --cmake-target isn't sufficient, it's likely that colcon can't do what you want out of the box, and you may need to implement a new colcon extension.

@cottsay cottsay transferred this issue from colcon/colcon-core Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants