[PATCH] D33146: CMake: Fix docs-llvm-man target when clang+llvm is in the same source tree
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 12:21:59 PDT 2017
tstellar created this revision.
Herald added a subscriber: mgorny.
This was broken by r302499. Configuring with -DLLVM_BUILD_DOCS=ON would
cause the docs-llvm-man target not to be created.
https://reviews.llvm.org/D33146
Files:
cmake/modules/AddSphinxTarget.cmake
Index: cmake/modules/AddSphinxTarget.cmake
===================================================================
--- cmake/modules/AddSphinxTarget.cmake
+++ cmake/modules/AddSphinxTarget.cmake
@@ -1,9 +1,9 @@
# Create sphinx target
-if (LLVM_ENABLE_SPHINX AND NOT TARGET sphinx)
+if (LLVM_ENABLE_SPHINX)
message(STATUS "Sphinx enabled.")
find_package(Sphinx REQUIRED)
- if (LLVM_BUILD_DOCS)
+ if (LLVM_BUILD_DOCS AND NOT TARGET sphinx)
add_custom_target(sphinx ALL)
endif()
else()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33146.98814.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170512/85c970ef/attachment.bin>
More information about the llvm-commits
mailing list