diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 4390c1ef..9399a686 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -1,4 +1,9 @@ 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) add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/man/${page} COMMAND xsltproc ${CMAKE_SOURCE_DIR}/man/${page}.xml -o ${CMAKE_SOURCE_DIR}/man/