Skip to content

Commit

Permalink
Add support for CMake 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankSpruce committed Mar 5, 2025
1 parent 9550b55 commit d5a7d83
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gersemirc.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/0.19.1/gersemi/configuration.schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/0.19.2/gersemi/configuration.schema.json

definitions: []
disable_formatting: false
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Changelog
## [0.19.2] 2025-03-05
### Added
- Support for new keywords in native commands available in CMake 4.0.

### Fixed
- Correctly recognize multi value keywords of `protobuf_generate`.

## [0.19.1] 2025-02-14
### Fixed
- Make `--diff` usable with `--check`. (#58)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ You can use gersemi with a pre-commit hook by adding the following to `.pre-comm
```yaml
repos:
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.19.1
rev: 0.19.2
hooks:
- id: gersemi
```
Expand All @@ -151,7 +151,7 @@ If you want to use extensions with pre-commit list them with [`additional_depend
```yaml
repos:
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.19.1
rev: 0.19.2
hooks:
- id: gersemi
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion gersemi/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
__license__ = "MPL 2.0"
__title__ = "gersemi"
__url__ = "https://github.com/BlankSpruce/gersemi"
__version__ = "0.19.1"
__version__ = "0.19.2"
6 changes: 6 additions & 0 deletions gersemi/builtin_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2227,6 +2227,7 @@
"BUILD_ALWAYS",
"BUILD_JOB_SERVER_AWARE",
# Install Step
"INSTALL_JOB_SERVER_AWARE",
# Test Step
"TEST_BEFORE_INSTALL",
"TEST_AFTER_INSTALL",
Expand Down Expand Up @@ -2652,6 +2653,7 @@
"VERBOSE",
"REPORT_FILE",
],
"multi_value_keywords": ["OPTIONS"],
},
#
### FindBLAS
Expand Down Expand Up @@ -2713,6 +2715,7 @@
### FindFLEX
"flex_target": {
"one_value_keywords": ["COMPILE_FLAGS", "DEFINES_FILE"],
"multi_value_keywords": ["OPTIONS"],
},
"add_flex_bison_dependency": {},
#
Expand Down Expand Up @@ -3001,6 +3004,9 @@
"PLUGIN",
"PLUGIN_OPTIONS",
"DEPENDENCIES",
"PROTOC_EXE",
],
"multi_value_keywords": [
"PROTOS",
"IMPORT_DIRS",
"GENERATE_EXTENSIONS",
Expand Down

0 comments on commit d5a7d83

Please sign in to comment.