forked from OSchip/llvm-project
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. llvm-svn: 302054
This commit is contained in:
parent
cf468d86f3
commit
21ebbf74ac
|
@ -530,6 +530,16 @@ else()
|
||||||
message(STATUS "Doxygen disabled.")
|
message(STATUS "Doxygen disabled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (LLVM_ENABLE_SPHINX)
|
||||||
|
message(STATUS "Sphinx enabled.")
|
||||||
|
find_package(Sphinx REQUIRED)
|
||||||
|
if (LLVM_BUILD_DOCS)
|
||||||
|
add_custom_target(sphinx ALL)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(STATUS "Sphinx disabled.")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(LLVM_BINDINGS "")
|
set(LLVM_BINDINGS "")
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
message(STATUS "Go bindings disabled.")
|
message(STATUS "Go bindings disabled.")
|
||||||
|
|
|
@ -1,16 +1,3 @@
|
||||||
|
|
||||||
# Create sphinx target
|
|
||||||
if (LLVM_ENABLE_SPHINX AND NOT TARGET sphinx)
|
|
||||||
message(STATUS "Sphinx enabled.")
|
|
||||||
find_package(Sphinx REQUIRED)
|
|
||||||
if (LLVM_BUILD_DOCS)
|
|
||||||
add_custom_target(sphinx ALL)
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
message(STATUS "Sphinx disabled.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# Handy function for creating the different Sphinx targets.
|
# Handy function for creating the different Sphinx targets.
|
||||||
#
|
#
|
||||||
# ``builder`` should be one of the supported builders used by
|
# ``builder`` should be one of the supported builders used by
|
||||||
|
|
|
@ -103,8 +103,8 @@ endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (LLVM_ENABLE_SPHINX)
|
if (LLVM_ENABLE_SPHINX)
|
||||||
include(AddSphinxTarget)
|
|
||||||
if (SPHINX_FOUND)
|
if (SPHINX_FOUND)
|
||||||
|
include(AddSphinxTarget)
|
||||||
if (${SPHINX_OUTPUT_HTML})
|
if (${SPHINX_OUTPUT_HTML})
|
||||||
add_sphinx_target(html llvm)
|
add_sphinx_target(html llvm)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue