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

Enforce standard cmake formatting with cmake-format #710

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Nopey
Copy link
Contributor

@Nopey Nopey commented Nov 1, 2024

The --literal-comment-pattern . argument is used to disable reflowing of comments, as it makes a mess of FindSDL2.cmake for little benefit.

@Nopey Nopey mentioned this pull request Nov 1, 2024
@katajakasa
Copy link
Member

Quick note to documentation on how to set this up locally would be nice!

Nopey added 2 commits November 1, 2024 18:28

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
The literal-comment-pattern arg is to disable comment reformatting
@Nopey
Copy link
Contributor Author

Nopey commented Nov 2, 2024

Added instructions to CONTRIBUTING.md, and put the literal_comment_pattern setting into a .cmake-format.py config file in case we ever have to change the settings further.

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.

None yet

2 participants