mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00
Look for xsltproc when needed; to fail early
Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
This commit is contained in:
parent
c604cf8fd0
commit
2cbb3e45ca
@ -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/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user