[NFC][libunbind] Fix Sphinx error during CMake invocation
authorxgupta <shivam98.tkg@gmail.com>
Thu, 11 Feb 2021 01:19:13 +0000 (06:49 +0530)
committerxgupta <shivam98.tkg@gmail.com>
Thu, 11 Feb 2021 01:22:24 +0000 (06:52 +0530)
An error has occurred when I build libunwind with -DLLVM_BUILD_DOCS=ON.

Reviewed By: #libunwind, compnerd

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

libunwind/docs/CMakeLists.txt

index c226f2f..79b87eb 100644 (file)
@@ -1,5 +1,5 @@
 include(FindSphinx)
-if (SPHINX_FOUND)
+if (SPHINX_FOUND AND LLVM_ENABLE_SPHINX)
   include(AddSphinxTarget)
   if (${SPHINX_OUTPUT_HTML})
     add_sphinx_target(html libunwind)