Get CMake cache variables
get_cache_variablesRead CMake cache entries (name, type, value, help) from a build directory, with optional name filtering and controls for advanced or internal entries.
Instructions
Returns CMake cache entries (name, type, value, help string), optionally filtered by name. Advanced entries are hidden unless includeAdvanced is set or a filter is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Name filter: substring, glob or /regex/. | |
| buildDir | No | Build directory (absolute, or relative to a workspace root). A source directory with a single build directory is also accepted. May be omitted when the workspace has exactly one build directory. | |
| includeAdvanced | No | Include entries marked as advanced. | |
| includeInternal | No | Include INTERNAL and STATIC entries. |