[libunwind] 77fecc0 - [NFC][libunbind] Fix Sphinx error during CMake invocation

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 17:23:08 PST 2021


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)


        


More information about the cfe-commits mailing list