Releases: TheLartians/Format.cmake
v1.8.1
v1.8.0
What's Changed
- Update README to match new CPM.cmake syntax by @TheLartians in #30
- Add option to skip clang-format execution by @krypty in #36
- Allow specifying extra arguments to CMake format by @krypty in #37
New Contributors
Full Changelog: v1.7.3...v1.8.0
Ignore file mode changes on cmake-format
Fixes a bug where file mode changes were incorrectly marked as unformatted for CMake source files.
Fix submodule integration
Fixes a bug that broke Format.came when integrated as a git submodule. Thanks to @TheLongRunSmoke for the fix.
Remove cached default for CMAKE_FORMAT_EXCLUDE
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 by default
- CMake files are now formatted by default.
- Replaces the
FORMAT_CHECK_CMAKE
with theFORMAT_SKIP_CMAKE
option.
v1.6 - Add CMAKE_FORMAT_EXCLUDE option
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.
Add dummy targets as dependencies when tools are unavailable
Fixes an issue with missing target dependencies when tools are unavailable. Relevant PR: #16.
Use FindPython
This release uses CMake's FindPython module instead of calling python directly, which may lead to errors on certain systems.
Relevant issue: #14.
cmake-format targets
Format.cmake now supports formatting CMake files through cmake-format!
To enable, set the configuration option FORMAT_CHECK_CMAKE
.