From e0833dc8ab2f40f0ed338e1cbb9fbcbf7be5e790 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Sun, 8 Mar 2015 15:39:48 +0800 Subject: [PATCH] Fixed #183 --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f1f636..a188882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,7 +181,8 @@ if (UNIX) set(TIDY_MANFILE tidy5.1) set(TIDY1XSL ../documentation/tidy1.xsl) set(TIDYHELP ${CMAKE_BINARY_DIR}/tidy-help.xml) - add_custom_target(man ALL) + set(TIDYCONFIG ../documentation/tidy-config.xml) + add_custom_target(man ALL DEPENDS "${CMAKE_BINARY_DIR}/tidy5") # run built EXE to generate xml output add_custom_command( @@ -191,6 +192,14 @@ if (UNIX) VERBATIM ) + # run built EXE to generate more xml output + add_custom_command( + TARGET man + COMMAND ${CMAKE_BINARY_DIR}/tidy5 -xml-config > ${TIDYCONFIG} + COMMENT "Generate ${TIDYHELP}" + VERBATIM + ) + # run xsltproc to generate the install files.. add_custom_command( TARGET man