def METHOD_NAME(self,libcmd):
    """
    Build a library using build_visit and return a BuildResult.
    """
    # make sure output dir exists!
    if self.odir != "":
        if not os.path.exists(self.odir):
            os.mkdir(self.odir)
    libs  = self.__parse_libcmd(libcmd)
    bvc   = self.__build_visit_command(libs);
    lib   = libs[-1]
    lfile = self.__log_file_name(lib)
    bresult = "failure"
    bstart = current_time()
    sexe(bvc)
    bend = current_time()
    if self.__check_build(lib):
        bresult = "success"
    return BuildResult(lib,libcmd,lfile,bstart,bend,bresult)