Make build system preserve cmake cache between builds