Then why do you need a build directory?
qemu: mkdir build; cd build; ../configure, some projects are like that