From 8baa21f154084837b6bd72e177c97d9e088b0f2a Mon Sep 17 00:00:00 2001 From: Earl Chew Date: Wed, 11 Jan 2023 07:48:22 -0800 Subject: [PATCH] Use the found xsltproc Do not assume xsltproc is in PATH, and use the executable discovered by find_program(). Fixes #1065 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a01240e8..576185fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -546,7 +546,7 @@ if (UNIX AND SUPPORT_CONSOLE_APP) add_custom_command( TARGET man DEPENDS ${TIDYHELP} - COMMAND xsltproc ARGS ${TIDY1XSL} ${TIDYHELP} > ${CMAKE_CURRENT_BINARY_DIR}/${TIDY_MANFILE} + COMMAND ${XSLTPROC_FOUND} ARGS ${TIDY1XSL} ${TIDYHELP} > ${CMAKE_CURRENT_BINARY_DIR}/${TIDY_MANFILE} COMMENT "Generate ${TIDY_MANFILE}" VERBATIM )