llvm.org GIT mirror llvm / 9c50cf0
Revert "Revert "CMake: Move sphinx detection into AddSphinxTarget.cmake"" This reverts commit r302054. Re-commit now that I have fixes for clang/lld. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302499 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 2 years ago
3 changed file(s) with 14 addition(s) and 11 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
542532 set(LLVM_BINDINGS "")
543533 if(WIN32)
544534 message(STATUS "Go bindings disabled.")
0
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.
114 #
215 # ``builder`` should be one of the supported builders used by
102102 endif()
103103
104104 if (LLVM_ENABLE_SPHINX)
105 include(AddSphinxTarget)
105106 if (SPHINX_FOUND)
106 include(AddSphinxTarget)
107107 if (${SPHINX_OUTPUT_HTML})
108108 add_sphinx_target(html llvm)
109109 endif()