mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[client,x11] fail build on manpage generation
if manpages should be build but dependencies are missing fail the build
This commit is contained in:
parent
078162616d
commit
64efb7ecfd
@ -84,9 +84,10 @@ set(${MODULE_PREFIX}_LIBS
|
|||||||
${X11_LIBRARIES})
|
${X11_LIBRARIES})
|
||||||
|
|
||||||
if(WITH_MANPAGES)
|
if(WITH_MANPAGES)
|
||||||
find_program(XSLTPROC_EXECUTABLE NAMES xsltproc)
|
find_program(XSLTPROC_EXECUTABLE NAMES xsltproc REQUIRED)
|
||||||
|
if (NOT DOCBOOKXSL_FOUND)
|
||||||
if(DOCBOOKXSL_FOUND AND XSLTPROC_EXECUTABLE)
|
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
|
# We need the variable ${MAN_TODAY} to contain the current date in ISO
|
||||||
# format to replace it in the configure_file step.
|
# format to replace it in the configure_file step.
|
||||||
@ -127,9 +128,6 @@ if(WITH_MANPAGES)
|
|||||||
DEPENDS xfreerdp.1)
|
DEPENDS xfreerdp.1)
|
||||||
|
|
||||||
install_freerdp_man(${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 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)
|
endif(WITH_MANPAGES)
|
||||||
|
|
||||||
set(XSHM_FEATURE_TYPE "REQUIRED")
|
set(XSHM_FEATURE_TYPE "REQUIRED")
|
||||||
|
Loading…
Reference in New Issue
Block a user