Added Sphinx documentation generation to CMake build system.
[oota-llvm.git] / cmake / config-ix.cmake
index 197caf9355bfca35c5b2bbfc4ba6287bbefa2faf..d1e4b2a64ea093a750009f020e8bd9801c85d775 100755 (executable)
@@ -505,3 +505,13 @@ if (LLVM_ENABLE_DOXYGEN)
 else()
   message(STATUS "Doxygen disabled.")
 endif()
+
+if (LLVM_ENABLE_SPHINX)
+  message(STATUS "Sphinx enabled.")
+  find_package(Sphinx REQUIRED)
+  if (LLVM_BUILD_DOCS)
+    add_custom_target(sphinx ALL)
+  endif()
+else()
+  message(STATUS "Sphinx disabled.")
+endif()