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

Fix potentially invalid macro name in generated version header #38

Merged
merged 2 commits into from
Nov 19, 2023

Conversation

jan-moeller
Copy link
Contributor

The generated name could be invalid if the target name contains characters that are not legal macro identifiers. This commit changes replaces all illegal characters with the underscore "_".

This should fix #37.

The generated name was invalid if the target name contained characters
that are not legal in macro identifiers. This commit replaces all
illegal characters with the underscore "_".
Copy link
Owner

@TheLartians TheLartians left a comment

Choose a reason for hiding this comment

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

Thanks for finding and fixing this issue!

CMakeLists.txt Show resolved Hide resolved
@TheLartians TheLartians enabled auto-merge (squash) November 19, 2023 11:16
@TheLartians TheLartians merged commit ac46aef into TheLartians:master Nov 19, 2023
3 checks passed
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.

The generated version header contains invalid code if the target name isn't a valid macro identifier
2 participants