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

cmake: use project name instead of hardcoded name #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jpeeters
Copy link

@jpeeters jpeeters commented Dec 9, 2024

This commit offers to give an arbitrary name to the Rust application project under CMake.

Indeed, before this commit, the CMake project for the Rust application had the name librustapp. Now, it can be set with any value.

@d3zd3z
Copy link
Collaborator

d3zd3z commented Dec 13, 2024

So, I think this is a good idea, but it is causing every single CI test to fail. I think you'll also need to fix the app name in every Cargo.toml file in the tree.

@jpeeters jpeeters force-pushed the fix-use-project-name-instead-of-hardcoded branch from d8862c8 to 5b99e0c Compare December 20, 2024 12:56
This commit offers to give an arbitrary name to the Rust application
project under CMake.

Indeed, before this commit, the CMake project for the Rust application
had the name `librustapp`. Now, it can be set with any value.
@jpeeters jpeeters force-pushed the fix-use-project-name-instead-of-hardcoded branch from 5b99e0c to 5094c50 Compare December 20, 2024 13:13
@@ -1,6 +1,6 @@
sample:
description: Hello world, but in Rust
name: hello rust world
name: hello world
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be real curious about this. At one point, I ran into twister failures if there were two samples, across the whole system, that had the same name.

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

Successfully merging this pull request may close these issues.

2 participants