summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/CMakeLists.txt2
-rw-r--r--lld/docs/CMakeLists.txt8
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()
OpenPOWER on IntegriCloud