diff --git a/.cmake-format b/.cmake-format deleted file mode 100644 index a6b2f16..0000000 --- a/.cmake-format +++ /dev/null @@ -1,4 +0,0 @@ -{ - "line_width": 120, - "max_subgroups_hwrap": 3 -} diff --git a/.gitignore b/.gitignore index ee3c7e0..fbf036d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .* !.clang* -!.cmake* !.git* build diff --git a/CMakeLists.txt b/CMakeLists.txt index a5e55be..5bdc156 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,11 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) option(BUILD_DOCS "Enable documentations build" OFF) # Import Format.cmake to format source code - cpmaddpackage("gh:threeal/Format.cmake#auto-install-cmake-format") + cpmaddpackage( + GITHUB_REPOSITORY TheLartians/Format.cmake + VERSION 1.8.0 + OPTIONS "FORMAT_SKIP_CMAKE ON" + ) if(BUILD_TESTING) enable_testing()