This approach works better with autotools, which supports the build directory being complete outside the source tree.