Prevent simultaneous builds for the same project

I’ve pushed before the build from the previous push finishes. How to prevent circle ci from starting the build before previous build of the same project finishes?