Skip to content

Commit

Permalink
Switch from dead cmake-format to gersemi
Browse files Browse the repository at this point in the history
Resolves #719

Apply pre-commit

Remove .cmake-format.py

fix msvc-specific.cmake
  • Loading branch information
ManifoldFR committed Oct 16, 2024
1 parent d280ff2 commit 610976f
Show file tree
Hide file tree
Showing 87 changed files with 3,622 additions and 2,449 deletions.
239 changes: 0 additions & 239 deletions .cmake-format.py

This file was deleted.

5 changes: 1 addition & 4 deletions .docs/examples/minimal-with-packages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@ add_project_dependency(Boost 1.50 REQUIRED COMPONENT timer)
add_library(myLibrary ${MY_SOURCES})
target_link_libraries(myLibrary MyDependency::MyAwesomeLib Boost::timer)

install(
TARGETS myLibrary
EXPORT ${TARGETS_EXPORT_NAME}
DESTINATION lib)
install(TARGETS myLibrary EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
2 changes: 2 additions & 0 deletions .gersemirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
indent: 2
warn_about_unknown_commands: false
4 changes: 4 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# pre-commit run -a (Guilhem Saurel, 2022-07-26)
a7abe2312a94b28f01173d6db5f74bb26c934e10

# pre-commit run (ManifoldFR, 2024-10-16)
6fe095c27e36bba9cc3cc52efa63910422fb204b
2f16beb724c950270b03a081d2a0339473cac196
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ repos:
args:
- --fix
- id: ruff-format
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.15.1
hooks:
- id: cmake-format
- id: gersemi
exclude: |
(?x)^(
.*\.(h|hh|pc|py)\.cmake|
Expand Down
Loading

0 comments on commit 610976f

Please sign in to comment.