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

cpptrace and CPack Error: invalid characters in variable name #203

Closed
riebers-m opened this issue Dec 31, 2024 · 3 comments
Closed

cpptrace and CPack Error: invalid characters in variable name #203

riebers-m opened this issue Dec 31, 2024 · 3 comments

Comments

@riebers-m
Copy link

Hi i want to create an installer for my executable with CPack. Installation is working as expected. I include cpptrace via CPM: https://github.com/cpm-cmake/CPM.cmake.

Now when i run CPack i always get the error:
Error: invalid characters in variable name "cpptrace-development_selected", use only characters [a-z][A-Z][0-9], '.' and '_'

I does not know how to change the variable or where it comes from. Any help is appreciated.

@riebers-m
Copy link
Author

Ok i now fixed the issue.
In InstallRules.cmake i changed all COMPONENT ${package_name}-development to COMPONENT ${package_name}_development and now CPack runs and creates an installer :D.

Should i make a PR to change the nameing for using CPack?

@jeremy-rifkin
Copy link
Owner

Hi, thanks for looking into this. Absolutely, a PR would be great!

@jeremy-rifkin
Copy link
Owner

I have gone ahead and pushed a change for this

@jeremy-rifkin jeremy-rifkin removed the resolved in next release Resolved in dev label Jan 5, 2025
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

2 participants