gersemi

Formatter for CMake code to improve readability and consistency

brewmacoslinux
Try with needOr install directly
Source

About

Formatter to make your CMake code the real treasure

Commands

gersemi

Examples

Format a CMake file in-place$ gersemi CMakeLists.txt
Format all CMake files in a directory recursively$ gersemi --check .
Format and show diff without modifying files$ gersemi --diff CMakeLists.txt