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

Missing target to generate librust_part.a #6

Open
StephanBischoff-Digle opened this issue Jul 28, 2021 · 0 comments
Open

Missing target to generate librust_part.a #6

StephanBischoff-Digle opened this issue Jul 28, 2021 · 0 comments

Comments

@StephanBischoff-Digle
Copy link

Hey, I was trying to use this project as a template to generate a static lib from a crate and a cpp executable and found that the executable target could not be generated due to the missing librust_part.a. If the target for the rust lib was build first everything went fine in a second stage when the executable was built.

I added ${RUST_PART_LIB} as an OUTPUT to the add_custom_command directive in the rust_part/CMakeLists.txt which lets cmake know that librust_part.a is generated by that command. Now it appears to build everything alright in one go.

Is there any reason why this could be not OK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant