Author: xgupta
Date: 2021-02-11T06:52:24+05:30
New Revision: 77fecc07955f51db3f184ba10d3f5fcd1f3f152d

URL: 
https://github.com/llvm/llvm-project/commit/77fecc07955f51db3f184ba10d3f5fcd1f3f152d
DIFF: 
https://github.com/llvm/llvm-project/commit/77fecc07955f51db3f184ba10d3f5fcd1f3f152d.diff

LOG: [NFC][libunbind] Fix Sphinx error during CMake invocation

An error has occurred when I build libunwind with -DLLVM_BUILD_DOCS=ON.

Reviewed By: #libunwind, compnerd

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

Added: 
    

Modified: 
    libunwind/docs/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libunwind/docs/CMakeLists.txt b/libunwind/docs/CMakeLists.txt
index c226f2f5b8e8..79b87eb03b44 100644
--- a/libunwind/docs/CMakeLists.txt
+++ b/libunwind/docs/CMakeLists.txt
@@ -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)


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to