The county buildings are to be erected and kept in order and repair at the expense of the county, under the direction of the county legislative body, and it may levy a special tax for this purpose.