I had the same problem and it was caused by building inside the source directory. Moving build directory outside the working copy fixed it.