https://github.com/dead-tech/pre-commit-cmake
pre-commit hook for cmake projects
https://github.com/dead-tech/pre-commit-cmake
Last synced: over 1 year ago
JSON representation
pre-commit hook for cmake projects
- Host: GitHub
- URL: https://github.com/dead-tech/pre-commit-cmake
- Owner: dead-tech
- License: mit
- Created: 2022-03-27T16:10:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T23:00:25.000Z (over 1 year ago)
- Last Synced: 2025-02-11T00:19:22.733Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://results.pre-commit.ci/latest/github/dead-tech/pre-commit-cmake/main)
# pre-commit-cmake
pre-commit hook to build your cmake projects
# Configuration
Basic configuration:
```yaml
repos:
- repo: https://github.com/dead-tech/pre-commit-cmake
rev: 'v0.0.4'
hooks:
- id: cmake-build
```
Optional arguments are:
- --build-dir to change default build directory (build/)
- --release to call cmake in release mode
- --jobs number of jobs to spawn when invoking make (default is 1)
Those arguments can be set like so:
```yaml
repos:
- repo: https://github.com/dead-tech/pre-commit-cmake
rev: 'v0.0.4'
hooks:
- id: cmake-build
args: [--release, '--build-dir', '', '--jobs', '']
```