summaryrefslogtreecommitdiff
path: root/network/rdma-core/optional_pandoc.patch
blob: 1e435a94b2d021c73bf5c9d80f6381d0e46436d3 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
The master "CMakeLists.txt" listed "pandoc" as an optional dependency,
but subsequent "make install" fails if "pandoc" is missing.
This patch makes "pandoc" really optional.
diff -ru rdma-core-25.0.orig/CMakeLists.txt rdma-core-25.0/CMakeLists.txt
--- rdma-core-25.0.orig/CMakeLists.txt	2019-07-26 02:17:21.000000000 +0800
+++ rdma-core-25.0/CMakeLists.txt	2019-07-31 00:08:41.485085990 +0800
@@ -602,11 +602,17 @@
 add_subdirectory(kernel-headers)
 # Libraries
 add_subdirectory(libibumad)
+if (PANDOC_FOUND)
 add_subdirectory(libibumad/man)
+endif()
 add_subdirectory(libibverbs)
+if (PANDOC_FOUND)
 add_subdirectory(libibverbs/man)
+endif()
 add_subdirectory(librdmacm)
+if (PANDOC_FOUND)
 add_subdirectory(librdmacm/man)
+endif()
 
 # Providers
 if (HAVE_COHERENT_DMA)
@@ -614,13 +620,19 @@
 add_subdirectory(providers/cxgb3) # NO SPARSE
 add_subdirectory(providers/cxgb4) # NO SPARSE
 add_subdirectory(providers/efa)
+if (PANDOC_FOUND)
 add_subdirectory(providers/efa/man)
+endif()
 add_subdirectory(providers/hns)
 add_subdirectory(providers/i40iw) # NO SPARSE
 add_subdirectory(providers/mlx4)
+if (PANDOC_FOUND)
 add_subdirectory(providers/mlx4/man)
+endif()
 add_subdirectory(providers/mlx5)
+if (PANDOC_FOUND)
 add_subdirectory(providers/mlx5/man)
+endif()
 add_subdirectory(providers/mthca)
 add_subdirectory(providers/nes) # NO SPARSE
 add_subdirectory(providers/ocrdma)
@@ -639,7 +651,9 @@
 add_subdirectory(libibnetdisc/man)
 add_subdirectory(infiniband-diags)
 add_subdirectory(infiniband-diags/scripts)
+if (PANDOC_FOUND)
 add_subdirectory(infiniband-diags/man)
+endif()
 
 if (CYTHON_EXECUTABLE)
   add_subdirectory(pyverbs)