Add support for building Sphinx documentation when being built inside LLVM source tree and using CMake.

Patch by Dan Liew <daniel.liew@imperial.ac.uk>!