Revert "Remove CMAKE_SOURCE/BUILD_DIR"

This reverts commit 282ba6c712280bcbdceec8f86fb90b2db46a07a0.