23 lines
890 B
Diff
23 lines
890 B
Diff
|
Install manpages not depending on pandoc and rst2man.
|
||
|
|
||
|
--- a/buildlib/rdma_man.cmake
|
||
|
+++ b/buildlib/rdma_man.cmake
|
||
|
@@ -68,7 +68,7 @@ endfunction()
|
||
|
# filename
|
||
|
function(rdma_man_pages)
|
||
|
foreach(I ${ARGN})
|
||
|
- if ("${I}" MATCHES "\\.md$")
|
||
|
+ if ("${I}" MATCHES "\\.md$" AND PANDOC_FOUND)
|
||
|
string(REGEX REPLACE "^.+[.](.+)\\.md$" "\\1" MAN_SECT "${I}")
|
||
|
string(REGEX REPLACE "^(.+)\\.md$" "\\1" BASE_NAME "${I}")
|
||
|
get_filename_component(BASE_NAME "${BASE_NAME}" NAME)
|
||
|
@@ -77,7 +77,7 @@ function(rdma_man_pages)
|
||
|
"${I}"
|
||
|
"${MAN_SECT}"
|
||
|
"${BASE_NAME}")
|
||
|
- elseif ("${I}" MATCHES "\\.in\\.rst$")
|
||
|
+ elseif ("${I}" MATCHES "\\.in\\.rst$" AND RST2MAN_FOUND)
|
||
|
string(REGEX REPLACE "^.+[.](.+)\\.in\\.rst$" "\\1" MAN_SECT "${I}")
|
||
|
string(REGEX REPLACE "^(.+)\\.in\\.rst$" "\\1" BASE_NAME "${I}")
|
||
|
get_filename_component(BASE_NAME "${BASE_NAME}" NAME)
|