summaryrefslogtreecommitdiff
blob: b90527a0e449de1f3f703cd2d60f74aa13e72047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 726806d9b4932287d67f9b6b112099648ea008b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sun, 21 Aug 2016 23:01:47 +0200
Subject: [PATCH 02/10] cmake: Make OCaml docs dependent on LLVM_BUILD_DOCS

Author: Bernard Cafarelli <voyageur@gentoo.org>
Bug: https://bugs.gentoo.org/562008
Patch: https://reviews.llvm.org/D23763
---
 docs/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
index eaa1750..f2cd7e9 100644
--- a/docs/CMakeLists.txt
+++ b/docs/CMakeLists.txt
@@ -115,7 +115,7 @@ if (LLVM_ENABLE_SPHINX)
 endif()
 
 list(FIND LLVM_BINDINGS_LIST ocaml uses_ocaml)
-if( NOT uses_ocaml LESS 0 )
+if( NOT uses_ocaml LESS 0 AND LLVM_BUILD_DOCS )
   set(doc_targets
         ocaml_llvm
         ocaml_llvm_all_backends
-- 
2.9.3