Skip to content

Commit

Permalink
Merge pull request #722 from ManifoldFR/topic/gersemi
Browse files Browse the repository at this point in the history
Switch from cmake-format to gersemi for formatting CMake listfiles
  • Loading branch information
jorisv authored Oct 23, 2024
2 parents d280ff2 + f9111e5 commit 35e46bb
Show file tree
Hide file tree
Showing 87 changed files with 3,554 additions and 2,395 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
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# pre-commit run -a (Guilhem Saurel, 2022-07-26)
a7abe2312a94b28f01173d6db5f74bb26c934e10
# switch to gersemi and pre-commit run -a (ManifoldFR, 2024-10-23)
f743a57ca5b83cc19669cac3d3541c23ea89a74a
ad86c1842091800eeff5fdcb32e766ac2338e50c
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 35e46bb

Please sign in to comment.