If the courthouse or other building of the county is located upon a public square or common in the city, borough or town then being the county seat, and a new building is authorized and required to be erected, in place of the courthouse or other building, the county commissioners may erect a new building upon any other of the public squares or commons of the city, borough or town, or upon any part thereof.
16 Pa.C.S. § 16116