(self, var: str, fallback: bool = False)
| 28 | return self.cache.get(var) |
| 29 | |
| 30 | def is_enabled(self, var: str, fallback: bool = False) -> bool: |
| 31 | definition = self.get(var) |
| 32 | if definition is None: |
| 33 | return fallback |
| 34 | return CMakeCache._is_truthy(definition.value) |
| 35 | |
| 36 | @staticmethod |
| 37 | def _is_truthy(value: Optional[str]) -> bool: |
no test coverage detected