[lld] r206662 - Add support for building Sphinx documentation when being built inside LLVM source tree and using CMake.

Reid Kleckner reid at kleckner.net
Fri Apr 18 14:59:06 PDT 2014


Author: rnk
Date: Fri Apr 18 16:59:05 2014
New Revision: 206662

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

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

Added:
    lld/trunk/docs/CMakeLists.txt
Modified:
    lld/trunk/CMakeLists.txt

Modified: lld/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/CMakeLists.txt?rev=206662&r1=206661&r2=206662&view=diff
==============================================================================
--- lld/trunk/CMakeLists.txt (original)
+++ lld/trunk/CMakeLists.txt Fri Apr 18 16:59:05 2014
@@ -180,3 +180,5 @@ add_subdirectory(test)
 if (LLVM_INCLUDE_TESTS AND NOT LLD_BUILT_STANDALONE)
   add_subdirectory(unittests)
 endif()
+
+add_subdirectory(docs)

Added: lld/trunk/docs/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/docs/CMakeLists.txt?rev=206662&view=auto
==============================================================================
--- lld/trunk/docs/CMakeLists.txt (added)
+++ lld/trunk/docs/CMakeLists.txt Fri Apr 18 16:59:05 2014
@@ -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()





More information about the llvm-commits mailing list