Kan. Stat. Ann. § 19-104
Each county organized for judicial purposes shall, at its own expense, provide a suitable courthouse and a suitable and sufficient jail, and fireproof offices and other necessary county buildings, and keep the same in repair.
G.S. 1868, ch. 25, § 4; October 31; R.S. 1923, 19-104.