|
|
|
@ -4,7 +4,6 @@
|
|
|
|
|
# could not be found, then the man pages will not be built or installed -
|
|
|
|
|
# because the install is optional.
|
|
|
|
|
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
|
find_program(XSLTPROC xsltproc OPTIONAL)
|
|
|
|
|
if(XSLTPROC)
|
|
|
|
|
function(compile_manpage page)
|
|
|
|
@ -25,11 +24,6 @@ if(NOT WIN32)
|
|
|
|
|
compile_manpage("mosquitto-tls.7")
|
|
|
|
|
compile_manpage("mqtt.7")
|
|
|
|
|
compile_manpage("mosquitto.8")
|
|
|
|
|
else()
|
|
|
|
|
message(FATAL_ERROR "xsltproc not found: manpages cannot be built")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
|
mosquitto_ctrl.1
|
|
|
|
@ -45,3 +39,10 @@ install(FILES libmosquitto.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3 OPTIONAL)
|
|
|
|
|
install(FILES mosquitto.conf.5 DESTINATION ${CMAKE_INSTALL_MANDIR}/man5 OPTIONAL)
|
|
|
|
|
install(FILES mosquitto-tls.7 mqtt.7 DESTINATION ${CMAKE_INSTALL_MANDIR}/man7 OPTIONAL)
|
|
|
|
|
install(FILES mosquitto.8 DESTINATION ${CMAKE_INSTALL_MANDIR}/man8 OPTIONAL)
|
|
|
|
|
|
|
|
|
|
elseif(WIN32)
|
|
|
|
|
message(WARNING "xsltproc not found: manpages cannot be built")
|
|
|
|
|
else()
|
|
|
|
|
message(FATAL_ERROR "xsltproc not found: manpages cannot be built")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|