cmake: improve error output on failed ronn
@@ -12,11 +12,11 @@ if (NOT DATE)
endif (NOT DATE)
execute_process (
- COMMAND ${CMAKE_COMMAND} -E env RUBYOPT=-Eutf-8:utf-8 LC_ALL=C.utf-8 ${RONN_COMMAND} -r --pipe ${MDFILE} --date=${DATE}
+ COMMAND "${CMAKE_COMMAND} -E env RUBYOPT=-Eutf-8:utf-8 LC_ALL=C.utf-8 ${RONN_COMMAND} -r --pipe ${MDFILE} --date=${DATE}"
OUTPUT_FILE ${MANPAGE}
ERROR_VARIABLE ERROR_OUTPUT
RESULT_VARIABLE RESULT)
if (NOT RESULT EQUAL 0)
- message (FATAL_ERROR "${ERROR_OUTPUT}")
+ message (FATAL_ERROR "${RONN_COMMAND} -r --pipe ${MDFILE} --date=${DATE} failed with output: ${ERROR_OUTPUT}")
endif ()
