diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-04-18 21:59:05 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-04-18 21:59:05 +0000 |
commit | f00daf15f0135cece7c8154aef00cd9595220547 (patch) | |
tree | 907d1e8b28e9cad81ffb0c5eeb16224bd915b96e | |
parent | 230f662d12fadafa500e032f1589567e638677d9 (diff) | |
download | bcm5719-llvm-f00daf15f0135cece7c8154aef00cd9595220547.tar.gz bcm5719-llvm-f00daf15f0135cece7c8154aef00cd9595220547.zip |
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
-rw-r--r-- | lld/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lld/docs/CMakeLists.txt | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt index 1606eb02c87..a6fce7d8357 100644 --- a/lld/CMakeLists.txt +++ b/lld/CMakeLists.txt @@ -180,3 +180,5 @@ add_subdirectory(test) if (LLVM_INCLUDE_TESTS AND NOT LLD_BUILT_STANDALONE) add_subdirectory(unittests) endif() + +add_subdirectory(docs) diff --git a/lld/docs/CMakeLists.txt b/lld/docs/CMakeLists.txt new file mode 100644 index 00000000000..d4f3b058efb --- /dev/null +++ b/lld/docs/CMakeLists.txt @@ -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() |