Fix manpage warnings during build (#2161)

Fixes #1392
This commit is contained in:
Kevin Zander 2018-01-21 20:20:33 -06:00 committed by Emmanuel Lepage Vallée
parent 1149e03396
commit 80b21cfbc3

View file

@ -234,8 +234,13 @@ if(GENERATE_MANPAGES)
set(gzfile ${BUILD_DIR}/${relpath2}/${basename}.gz)
set(manfile ${BUILD_DIR}/${relpath2}/${basename})
if (lang STREQUAL default)
set(asciilang en)
else()
set(asciilang ${lang})
endif()
add_custom_command(
COMMAND ${ASCIIDOC_EXECUTABLE} -d manpage -b docbook -o ${xmlfile} - < ${txtfile}
COMMAND ${ASCIIDOC_EXECUTABLE} -a lang=${asciilang} -d manpage -b docbook -o ${xmlfile} - < ${txtfile}
WORKING_DIRECTORY ${BUILD_DIR}/${relpath2}
OUTPUT ${xmlfile}
DEPENDS ${txtfile}