Format.cmake

💅 Stylize your code! Automatic clang-format and cmake-format targets for CMake.

APACHE-2.0 License

Stars
143

Bot releases are visible (Hide)

Format.cmake - v1.8.1 Latest Release

Published by TheLartians 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/TheLartians/Format.cmake/compare/v1.8.0...v1.8.1

Format.cmake - v1.8.0

Published by TheLartians 12 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/TheLartians/Format.cmake/compare/v1.7.3...v1.8.0

Format.cmake - Ignore file mode changes on cmake-format

Published by TheLartians about 3 years ago

Fixes a bug where file mode changes were incorrectly marked as unformatted for CMake source files.

Format.cmake - Fix submodule integration

Published by TheLartians over 3 years ago

Fixes a bug that broke Format.came when integrated as a git submodule. Thanks to @TheLongRunSmoke for the fix.

Format.cmake - Remove cached default for CMAKE_FORMAT_EXCLUDE

Published by TheLartians over 3 years ago

Removes the cached variable and default setting for CMAKE_FORMAT_EXCLUDE, fixing potential issues with setting the value.
Thanks to @jecassis for the fix!

Format.cmake - Format CMake by default

Published by TheLartians over 3 years ago

  • CMake files are now formatted by default.
  • Replaces the FORMAT_CHECK_CMAKE with the FORMAT_SKIP_CMAKE option.
Format.cmake - v1.6 - Add CMAKE_FORMAT_EXCLUDE option

Published by TheLartians about 4 years ago

Paths to format can now be skipped using the CMAKE_FORMAT_EXCLUDE option. This is especially to disable formatting of third-party scripts, such as CPM.cmake. See #18 for details.

Format.cmake - Add dummy targets as dependencies when tools are unavailable

Published by TheLartians about 4 years ago

Fixes an issue with missing target dependencies when tools are unavailable. Relevant PR: #16.

Format.cmake - Use FindPython

Published by TheLartians about 4 years ago

This release uses CMake's FindPython module instead of calling python directly, which may lead to errors on certain systems.
Relevant issue: #14.

Format.cmake - cmake-format targets

Published by TheLartians over 4 years ago

Format.cmake now supports formatting CMake files through cmake-format!
To enable, set the configuration option FORMAT_CHECK_CMAKE.

Format.cmake -

Published by TheLartians over 4 years ago

Format.cmake - Find clang-format using find_program

Published by TheLartians over 4 years ago

Format.cmake -

Published by TheLartians over 4 years ago

Format.cmake -

Published by TheLartians over 4 years ago

Format.cmake -

Published by TheLartians about 5 years ago

Badges
Extracted from project README
Actions Status Actions Status