[client,x11] fail build on manpage generation

if manpages should be build but dependencies are missing fail the build
This commit is contained in:
Armin Novak 2023-02-22 07:23:38 +01:00 committed by akallabeth
parent 078162616d
commit 64efb7ecfd

View File

@ -84,9 +84,10 @@ set(${MODULE_PREFIX}_LIBS
${X11_LIBRARIES})
if(WITH_MANPAGES)
find_program(XSLTPROC_EXECUTABLE NAMES xsltproc)
if(DOCBOOKXSL_FOUND AND XSLTPROC_EXECUTABLE)
find_program(XSLTPROC_EXECUTABLE NAMES xsltproc REQUIRED)
if (NOT DOCBOOKXSL_FOUND)
message(FATAL_ERROR "docbook xsl not found but required for manpage generation")
endif()
# We need the variable ${MAN_TODAY} to contain the current date in ISO
# format to replace it in the configure_file step.
@ -127,9 +128,6 @@ if(WITH_MANPAGES)
DEPENDS xfreerdp.1)
install_freerdp_man(${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 1)
else()
message(WARNING "WITH_MANPAGES was set, but xsltproc was not found. man-pages will not be installed")
endif()
endif(WITH_MANPAGES)
set(XSHM_FEATURE_TYPE "REQUIRED")