Well, the name is incorrect.  Build dir is the directory with object files.  With CMake one chdir()s to the build dir and runs `cmake src-dir`.