Skip to content

Commit d7b8dcd

Browse files
authored
build: skip CMake formatting (#70)
* build: set Format.cmake with `FORMAT_SKIP_CMAKE ON` option * build: use `TheLartians/Format.cmake` back * chore: remove unused `.cmake-format` config file
1 parent 866b56d commit d7b8dcd

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.cmake-format

Lines changed: 0 additions & 4 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.*
22
!.clang*
3-
!.cmake*
43
!.git*
54

65
build

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
1717
option(BUILD_DOCS "Enable documentations build" OFF)
1818

1919
# Import Format.cmake to format source code
20-
cpmaddpackage("gh:threeal/Format.cmake#auto-install-cmake-format")
20+
cpmaddpackage(
21+
GITHUB_REPOSITORY TheLartians/Format.cmake
22+
VERSION 1.8.0
23+
OPTIONS "FORMAT_SKIP_CMAKE ON"
24+
)
2125

2226
if(BUILD_TESTING)
2327
enable_testing()

0 commit comments

Comments
 (0)