Skip to content

Releases: TheLartians/Format.cmake

v1.8.1

18 Jan 08:30
15b0454
Compare
Choose a tag to compare

What's Changed

  • Add template implementation file endings by @rath3t in #38

New Contributors

Full Changelog: v1.8.0...v1.8.1

v1.8.0

01 Nov 16:27
db37c4e
Compare
Choose a tag to compare

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

09 Oct 16:17
32e02a3
Compare
Choose a tag to compare

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

Fix submodule integration

08 Jun 09:41
282c3cb
Compare
Choose a tag to compare

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

12 Apr 09:24
f9a03a4
Compare
Choose a tag to compare

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

01 Mar 20:46
1cd8380
Compare
Choose a tag to compare
  • CMake files are now formatted by default.
  • Replaces the FORMAT_CHECK_CMAKE with the FORMAT_SKIP_CMAKE option.

v1.6 - Add CMAKE_FORMAT_EXCLUDE option

11 Aug 08:23
5b44a69
Compare
Choose a tag to compare

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

04 Aug 10:08
a5154c6
Compare
Choose a tag to compare

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

Use FindPython

03 Aug 07:39
d0b77bb
Compare
Choose a tag to compare

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

27 May 10:07
9ffd291
Compare
Choose a tag to compare

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