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>!

llvm-svn: 206662
This commit is contained in:
Reid Kleckner 2014-04-18 21:59:05 +00:00
parent 230f662d12
commit f00daf15f0
2 changed files with 10 additions and 0 deletions

View File

@ -180,3 +180,5 @@ add_subdirectory(test)
if (LLVM_INCLUDE_TESTS AND NOT LLD_BUILT_STANDALONE)
add_subdirectory(unittests)
endif()
add_subdirectory(docs)

8
lld/docs/CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
if (LLVM_ENABLE_SPHINX)
if (SPHINX_FOUND)
include(AddSphinxTarget)
if (${SPHINX_OUTPUT_HTML})
add_sphinx_target(html lld)
endif()
endif()
endif()