llvm.org GIT mirror llvm / 450661e
Revert "CMake: Move sphinx detection into AddSphinxTarget.cmake" This reverts commit r302025. clang and lld need to be updated too so they don't break with this patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302054 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 3 years ago
3 changed file(s) with 11 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
529529 message(STATUS "Doxygen disabled.")
530530 endif()
531531
532 if (LLVM_ENABLE_SPHINX)
533 message(STATUS "Sphinx enabled.")
534 find_package(Sphinx REQUIRED)
535 if (LLVM_BUILD_DOCS)
536 add_custom_target(sphinx ALL)
537 endif()
538 else()
539 message(STATUS "Sphinx disabled.")
540 endif()
541
532542 set(LLVM_BINDINGS "")
533543 if(WIN32)
534544 message(STATUS "Go bindings disabled.")
None
1 # Create sphinx target
2 if (LLVM_ENABLE_SPHINX AND NOT TARGET sphinx)
3 message(STATUS "Sphinx enabled.")
4 find_package(Sphinx REQUIRED)
5 if (LLVM_BUILD_DOCS)
6 add_custom_target(sphinx ALL)
7 endif()
8 else()
9 message(STATUS "Sphinx disabled.")
10 endif()
11
12
13 # Handy function for creating the different Sphinx targets.
141 #
152 # ``builder`` should be one of the supported builders used by
102102 endif()
103103
104104 if (LLVM_ENABLE_SPHINX)
105 include(AddSphinxTarget)
106105 if (SPHINX_FOUND)
106 include(AddSphinxTarget)
107107 if (${SPHINX_OUTPUT_HTML})
108108 add_sphinx_target(html llvm)
109109 endif()