tstellar / rpms / llvm

Forked from rpms/llvm 3 years ago
Clone
7a52d8c
From af79e4116c4476153869e1fd4aa30c87d4c7c21e Mon Sep 17 00:00:00 2001
7a52d8c
From: Tom Stellard <tstellar@redhat.com>
7a52d8c
Date: Mon, 15 May 2017 09:34:23 +0000
7a52d8c
Subject: [PATCH] CMake: Fix docs-llvm-man target when clang+llvm is in the
7a52d8c
 same source tree
7a52d8c
7a52d8c
Summary:
7a52d8c
This was broken by r302499.  Configuring with -DLLVM_BUILD_DOCS=ON would
7a52d8c
cause the docs-llvm-man target not to be created.
7a52d8c
7a52d8c
Reviewers: anemet, beanz
7a52d8c
7a52d8c
Reviewed By: anemet
7a52d8c
7a52d8c
Subscribers: llvm-commits, mgorny
7a52d8c
7a52d8c
Differential Revision: https://reviews.llvm.org/D33146
7a52d8c
7a52d8c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303042 91177308-0d34-0410-b5e6-96231b3b80d8
7a52d8c
---
7a52d8c
 cmake/modules/AddSphinxTarget.cmake | 4 ++--
7a52d8c
 1 file changed, 2 insertions(+), 2 deletions(-)
7a52d8c
7a52d8c
diff --git a/cmake/modules/AddSphinxTarget.cmake b/cmake/modules/AddSphinxTarget.cmake
7a52d8c
index c3a676d..4540c5c 100644
7a52d8c
--- a/cmake/modules/AddSphinxTarget.cmake
7a52d8c
+++ b/cmake/modules/AddSphinxTarget.cmake
7a52d8c
@@ -1,9 +1,9 @@
7a52d8c
 
7a52d8c
 # Create sphinx target
7a52d8c
-if (LLVM_ENABLE_SPHINX AND NOT TARGET sphinx)
7a52d8c
+if (LLVM_ENABLE_SPHINX)
7a52d8c
   message(STATUS "Sphinx enabled.")
7a52d8c
   find_package(Sphinx REQUIRED)
7a52d8c
-  if (LLVM_BUILD_DOCS)
7a52d8c
+  if (LLVM_BUILD_DOCS AND NOT TARGET sphinx)
7a52d8c
     add_custom_target(sphinx ALL)
7a52d8c
   endif()
7a52d8c
 else()
7a52d8c
-- 
7a52d8c
1.8.3.1
7a52d8c