[Docs] Fix Sphinx documentation in CMake check.
authorSiddharth Bhat <siddu.druid@gmail.com>
Mon, 22 May 2017 13:16:02 +0000 (13:16 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Mon, 22 May 2017 13:16:02 +0000 (13:16 +0000)
Summary:
- `include(AddSphinxTarget)` needs to occur before checking `SPHINX_FOUND`.
- `docs-polly-html` and `docs-polly-man` are now usable again.
- Perhaps we should build docs in the CI as well?

Differential Revision: https://reviews.llvm.org/D33386

llvm-svn: 303549

polly/docs/CMakeLists.txt

index 32857e4..a1ef5ce 100644 (file)
@@ -90,8 +90,8 @@ endif()
 endif()
 
 if (LLVM_ENABLE_SPHINX)
+  include(AddSphinxTarget)
   if (SPHINX_FOUND)
-    include(AddSphinxTarget)
     if (${SPHINX_OUTPUT_HTML})
       add_sphinx_target(html polly)
     endif()