From: Reid Kleckner Date: Fri, 18 Apr 2014 21:55:46 +0000 (+0000) Subject: Add support for building Sphinx documentation when being inside LLVM source tree... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02e4ae3e5d1c4d63756a06ba2f67f42f9b3184a3;p=clang Add support for building Sphinx documentation when being inside LLVM source tree and using CMake Patch by Daniel Liew ! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206660 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 635ea1fe7c..20a1396c48 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -80,3 +80,12 @@ if (LLVM_ENABLE_DOXYGEN) endif() endif() endif() + +if (LLVM_ENABLE_SPHINX) + if (SPHINX_FOUND) + include(AddSphinxTarget) + if (${SPHINX_OUTPUT_HTML}) + add_sphinx_target(html clang) + endif() + endif() +endif()