diff options
| author | Tom Stellard <tstellar@redhat.com> | 2017-05-03 17:22:23 +0000 |
|---|---|---|
| committer | Tom Stellard <tstellar@redhat.com> | 2017-05-03 17:22:23 +0000 |
| commit | 21ebbf74ac9911339e4a8c40753c2e00603c769f (patch) | |
| tree | 0830a0dd0c8ea197b0aecee3abdb727f92baa079 /llvm/cmake | |
| parent | cf468d86f33003e7591848a2d8f404f402b52005 (diff) | |
| download | bcm5719-llvm-21ebbf74ac9911339e4a8c40753c2e00603c769f.tar.gz bcm5719-llvm-21ebbf74ac9911339e4a8c40753c2e00603c769f.zip | |
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
Diffstat (limited to 'llvm/cmake')
| -rwxr-xr-x | llvm/cmake/config-ix.cmake | 10 | ||||
| -rw-r--r-- | llvm/cmake/modules/AddSphinxTarget.cmake | 13 |
2 files changed, 10 insertions, 13 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index de8e9bf9a49..0331d0fa10a 100755 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -530,6 +530,16 @@ else() message(STATUS "Doxygen disabled.") 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 "") if(WIN32) message(STATUS "Go bindings disabled.") diff --git a/llvm/cmake/modules/AddSphinxTarget.cmake b/llvm/cmake/modules/AddSphinxTarget.cmake index c3a676d3063..cfc7f38e9e7 100644 --- a/llvm/cmake/modules/AddSphinxTarget.cmake +++ b/llvm/cmake/modules/AddSphinxTarget.cmake @@ -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. # # ``builder`` should be one of the supported builders used by |

