diff --git a/.gitignore b/.gitignore
index 790258ad271e47701845399d0f2675a975c41493..bfb913322b0590544976fcaa49b9739e3f813472 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,7 +15,7 @@ TAGS
 # Stuff to ignore in this directory only
 /aclocal.m4
 /autom4te.cache/
-/build-cmake/
+/build-*/
 /compile
 /config.guess
 /config.h