Fix bug in CMakeLists.txt when build Docs