💅 Stylize your code! Automatic clang-format and cmake-format targets for CMake.
APACHE-2.0 License
Bot releases are hidden (Show)
Full Changelog: https://github.com/TheLartians/Format.cmake/compare/v1.8.0...v1.8.1
Published by TheLartians 12 months ago
Full Changelog: https://github.com/TheLartians/Format.cmake/compare/v1.7.3...v1.8.0
Published by TheLartians about 3 years ago
Fixes a bug where file mode changes were incorrectly marked as unformatted for CMake source files.
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.
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!
Published by TheLartians over 3 years ago
FORMAT_CHECK_CMAKE
with the FORMAT_SKIP_CMAKE
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.
Published by TheLartians about 4 years ago
Fixes an issue with missing target dependencies when tools are unavailable. Relevant PR: #16.
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.
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
.
Published by TheLartians over 4 years ago