r206660 - Add support for building Sphinx documentation when being inside LLVM source tree and using CMake

Reid Kleckner reid at kleckner.net
Fri Apr 18 14:55:47 PDT 2014


Author: rnk
Date: Fri Apr 18 16:55:46 2014
New Revision: 206660

URL: http://llvm.org/viewvc/llvm-project?rev=206660&view=rev
Log:
Add support for building Sphinx documentation when being inside LLVM source tree and using CMake

Patch by Daniel Liew <daniel.liew at imperial.ac.uk>!

Modified:
    cfe/trunk/docs/CMakeLists.txt

Modified: cfe/trunk/docs/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/CMakeLists.txt?rev=206660&r1=206659&r2=206660&view=diff
==============================================================================
--- cfe/trunk/docs/CMakeLists.txt (original)
+++ cfe/trunk/docs/CMakeLists.txt Fri Apr 18 16:55:46 2014
@@ -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()





More information about the cfe-commits mailing list