cmake: stop deleting the source when gzipping manpages

This commit is contained in:
Michael Gehring 2008-06-21 18:13:34 +02:00
parent 041207090a
commit 62f2e3d549
1 changed files with 5 additions and 2 deletions

View File

@ -187,9 +187,12 @@ IF(GENERATE_MANPAGES)
ADD_CUSTOM_COMMAND(COMMAND ${XMLTO_EXECUTABLE} man ${xmlfile}
OUTPUT ${manfile}
DEPENDS ${xmlfile})
ADD_CUSTOM_COMMAND(COMMAND ${GZIP_EXECUTABLE} -f ${manfile}
ADD_CUSTOM_COMMAND(COMMAND ${CAT_EXECUTABLE} ${manfile}
| ${GZIP_EXECUTABLE}
> ${gzfile}
OUTPUT ${gzfile}
DEPENDS ${manfile})
DEPENDS ${manfile}
VERBATIM)
SET(MAN_FILES ${MAN_FILES} ${gzfile})
ENDFOREACH()