From f00daf15f0135cece7c8154aef00cd9595220547 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 18 Apr 2014 21:59:05 +0000 Subject: [PATCH] Add support for building Sphinx documentation when being built inside LLVM source tree and using CMake. Patch by Dan Liew ! llvm-svn: 206662 --- lld/CMakeLists.txt | 2 ++ lld/docs/CMakeLists.txt | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 lld/docs/CMakeLists.txt diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt index 1606eb02c87b..a6fce7d83576 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 000000000000..d4f3b058efb7 --- /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() -- GitLab