From 80b21cfbc33c8dbea20d8937c32937dd5d7bc490 Mon Sep 17 00:00:00 2001 From: Kevin Zander Date: Sun, 21 Jan 2018 20:20:33 -0600 Subject: [PATCH] Fix manpage warnings during build (#2161) Fixes #1392 --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c34697d1b..6d88d1c56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}