The -C flag wasn't supported back then. The workaround is to change the working directory via CMake. This issue was detected while building on CentOS 7.