[llvm] r303042 - CMake: Fix docs-llvm-man target when clang+llvm is in the same source tree
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Mon May 15 02:34:24 PDT 2017
Author: tstellar
Date: Mon May 15 04:34:23 2017
New Revision: 303042
URL: http://llvm.org/viewvc/llvm-project?rev=303042&view=rev
Log:
CMake: Fix docs-llvm-man target when clang+llvm is in the same source tree
Summary:
This was broken by r302499. Configuring with -DLLVM_BUILD_DOCS=ON would
cause the docs-llvm-man target not to be created.
Reviewers: anemet, beanz
Reviewed By: anemet
Subscribers: llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D33146
Modified:
llvm/trunk/cmake/modules/AddSphinxTarget.cmake
Modified: llvm/trunk/cmake/modules/AddSphinxTarget.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddSphinxTarget.cmake?rev=303042&r1=303041&r2=303042&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddSphinxTarget.cmake (original)
+++ llvm/trunk/cmake/modules/AddSphinxTarget.cmake Mon May 15 04:34:23 2017
@@ -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()
More information about the llvm-commits
mailing list