def do_source(src: str) -> None:
    if ((identifier != 'HEADER_FILE_ONLY') or (not self._str_to_bool(value))):
        return
    current_src_dir = self.var_to_str('MESON_PS_CMAKE_CURRENT_SOURCE_DIR')
    if (not current_src_dir):
        mlog.warning(textwrap.dedent('                    CMake trace: set_property(SOURCE) called before the preload script was loaded.\n                    Unable to determine CMAKE_CURRENT_SOURCE_DIR. This can lead to build errors.\n                '))
        current_src_dir = '.'
    cur_p = Path(current_src_dir)
    src_p = Path(src)
    if (not src_p.is_absolute()):
        src_p = (cur_p / src_p)
    self.explicit_headers.add(src_p)
def do_source(src: str) -> None:
    if ((identifier != 'HEADER_FILE_ONLY') or (not self._str_to_bool(value))):
        return
    current_src_dir = self.var_to_str('MESON_PS_CMAKE_CURRENT_SOURCE_DIR')
    if (not current_src_dir):
        mlog.warning(textwrap.dedent('                    CMake trace: set_property(SOURCE) called before the preload script was loaded.\n                    Unable to determine CMAKE_CURRENT_SOURCE_DIR. This can lead to build errors.\n                '))
        current_src_dir = '.'
    cur_p = Path(current_src_dir)
    src_p = Path(src)
    if (not src_p.is_absolute()):
        src_p = (cur_p / src_p)
    self.explicit_headers.add(src_p)