Skip to content

Commit bad9831

Browse files
committed
Update documentation
1 parent e01fdd6 commit bad9831

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

docs/configuration.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,17 +413,42 @@ You can select a different build type, such as `Debug`:
413413
414414
```
415415

416-
You can specify CMake defines:
416+
You can specify CMake defines as strings or bools:
417417

418418
````{tab} pyproject.toml
419419

420420
```toml
421421
[tool.scikit-build.cmake.define]
422-
SOME_DEFINE = "ON"
422+
SOME_DEFINE = "Foo"
423+
SOME_OPTION = true
423424
```
424425

425426
````
426427

428+
:::{versionchanged} 0.11
429+
430+
You can specify a CMake define as a list of strings:
431+
432+
````{tab} pyproject.toml
433+
434+
```toml
435+
[tool.scikit-build.cmake.define]
436+
FOOD_GROUPS = [
437+
"Apple",
438+
"Lemon;Lime",
439+
"Banana",
440+
"Pineapple;Mango",
441+
]
442+
```
443+
444+
````
445+
446+
Semicolons inside the list elements will be escaped with a backslash (`\`) and
447+
the resulting list elements will be joined together with semicolons (`;`) before
448+
being converted to command-line arguments.
449+
450+
:::
451+
427452
`````{tab} config-settings
428453
429454

0 commit comments

Comments
 (0)