void-packages/srcpkgs/tidy5/patches/allow-cross.patch

20 lines
799 B
Diff

--- a/CMakeLists.txt 2015-11-23 16:07:04.000000000 +0100
+++ b/CMakeLists.txt 2015-11-25 09:59:50.944941514 +0100
@@ -238,7 +238,7 @@
# run built EXE to generate xml output
add_custom_command(
TARGET man
- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} -xml-help > ${TIDYHELP}
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tidy -xml-help > ${TIDYHELP}
COMMENT "Generate ${TIDYHELP}"
VERBATIM
)
@@ -247,6 +247,6 @@
add_custom_command(
TARGET man
- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} -xml-config > ${TIDYCONFIG}
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tidy -xml-config > ${TIDYCONFIG}
COMMENT "Generate ${TIDYCONFIG}"
VERBATIM
)