Skip to content

Commit e86efed

Browse files
authored
chore: merge pull request #26 from threeal/use-format-cmake-with-auto-install
Update Format.cmake to Support Auto Installation of cmake-format
2 parents 07e8c62 + f90e532 commit e86efed

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v3.5.3
1616

17-
- name: Install cmake-format
18-
run: pip3 install cmake-format
19-
2017
- name: Configure CMake
2118
run: |
2219
cmake ${{ matrix.package }} \

error/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
1919

2020
# Import Format.cmake to format source code
2121
if(CHECK_FORMAT)
22-
cpmaddpackage("gh:TheLartians/Format.cmake@1.7.3")
22+
cpmaddpackage("gh:threeal/Format.cmake#auto-install-cmake-format")
2323
add_dependencies(error fix-format)
2424
endif()
2525

0 commit comments

Comments
 (0)