conan-io / conan-io/docs

Layout files - workaround for non-existing settings

Open
#1,406 0 comments 1 reaction 0 assignees View on GitHub
complex: low priority: medium stage: queue type: feature
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

Mention in the docs the _workaround_ when a package doesn't define some settings. The idea is to use the `settings.get_safe` function:

```
{{ settings.get_safe("build_type")|default("value-if-not-build_type") }}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.