Previously the binary was being picked up from the current $PATH.
Signed-off-by: Zane Bitter zbitter@redhat.com --- src/cmake/modules/MatahariMacros.cmake | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cmake/modules/MatahariMacros.cmake b/src/cmake/modules/MatahariMacros.cmake index 65e489b..720d03c 100644 --- a/src/cmake/modules/MatahariMacros.cmake +++ b/src/cmake/modules/MatahariMacros.cmake @@ -105,7 +105,7 @@ macro(create_manpage BINARY SECTION DESC) add_custom_command( TARGET ${BINARY} POST_BUILD - COMMAND ${HELP2MAN} --output ${BINARY}.${SECTION} --no-info --section ${SECTION} --name ${DESC} ${BINARY} + COMMAND ${HELP2MAN} --output ${BINARY}.${SECTION} --no-info --section ${SECTION} --name ${DESC} ${CMAKE_CURRENT_BINARY_DIR}/${BINARY} COMMENT "Generating ${BINARY} man page" VERBATIM )