def _gen_exception(self, function: str, error: str, tline: CMakeTraceLine) -> None:
    if self.permissive:
        mlog.debug(f'''CMake trace warning: {function}() {error}
{tline}''')
        return None
    raise CMakeException(f'''CMake: {function}() {error}
{tline}''')
def _gen_exception(self, function: str, error: str, tline: CMakeTraceLine) -> None:
    if self.permissive:
        mlog.debug(f'CMake trace warning: {function}() {error}
{tline}')
        return None
    raise CMakeException(f'CMake: {function}() {error}
{tline}')