Consider using cmake-format
It's good to have tools to maintain code formatting, including build code formatting.
The best thing I've found so far for CMake is cmake-format, and I've used it on other projects. However, it would result in some style changes:
- it doesn't support using
\ttabs, only spaces. (last time I used it - though it does look to be an active project)
- it doesn't have an option to do our very unique formatting of closing
)- we have them on a line of their own, but at the same level as the indented body. Haven't ever seen another project do that - it's usually either line of their own and un-indented, or on the same line as the last argument. Both of those two are possible with cmake-format, but not our current design.