adds change to use out-of-source build in CMake