Merge branch 'make-sure-xsltproc-installed' of git://github.com/Hallot/mosquitto into Hallot-make-sure-xsltproc-installed

This commit is contained in:
Roger A. Light 2021-01-08 17:08:58 +00:00
commit f7255ac3cf

View File

@ -1,4 +1,9 @@
if(NOT WIN32) if(NOT WIN32)
find_program(XSLTPROC xsltproc REQUIRED)
if(NOT XSLTPROC)
message(FATAL_ERROR "xsltproc not found: manpages cannot be built")
endif()
function(compile_manpage page) function(compile_manpage page)
add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/man/${page} add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/man/${page}
COMMAND xsltproc ${CMAKE_SOURCE_DIR}/man/${page}.xml -o ${CMAKE_SOURCE_DIR}/man/ COMMAND xsltproc ${CMAKE_SOURCE_DIR}/man/${page}.xml -o ${CMAKE_SOURCE_DIR}/man/