Fix the implementation of the BUILD_DOC CMake option
The current implementation of the BUILD_DOC
CMake
option does not allow to control the build of the documentation. This MR fixes this implementation and includes some basic formatting of the CMake
messages so they match the structure of the native CMake
messages. Closes #11 (closed).