[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
Mon May 15 02:47:43 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL303042: CMake: Fix docs-llvm-man target when clang+llvm is in the same source tree (authored by tstellar).

Changed prior to commit:
  https://reviews.llvm.org/D33146?vs=98814&id=98965#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33146

Files:
  llvm/trunk/cmake/modules/AddSphinxTarget.cmake


Index: llvm/trunk/cmake/modules/AddSphinxTarget.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddSphinxTarget.cmake
+++ llvm/trunk/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.98965.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170515/0f379eb7/attachment.bin>


More information about the llvm-commits mailing list