docs: Fix Sphinx detection with out-of-tree builds
authorTom Stellard <tstellar@redhat.com>
Tue, 9 May 2017 11:18:03 +0000 (11:18 +0000)
committerTom Stellard <tstellar@redhat.com>
Tue, 9 May 2017 11:18:03 +0000 (11:18 +0000)
Adapt to changes made in r302499.

llvm-svn: 302517

libcxx/docs/CMakeLists.txt

index f63ee00..d679761 100644 (file)
@@ -1,9 +1,9 @@
 
 if (LLVM_ENABLE_SPHINX)
+  include(AddSphinxTarget)
   if (SPHINX_FOUND)
-    include(AddSphinxTarget)
     if (${SPHINX_OUTPUT_HTML})
       add_sphinx_target(html libcxx)
     endif()
   endif()
-endif()
\ No newline at end of file
+endif()