File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments