Output only to build folder

This commit is contained in:
Geoff R. McLane 2015-03-08 12:35:41 +01:00
parent da5da0ab35
commit f4071047e9

View file

@ -177,11 +177,11 @@ if (UNIX)
if (XSLTPROC_FOUND) if (XSLTPROC_FOUND)
## NOTE: man name must match exe ie currently `tidy5.1` not `tidy.1` ## NOTE: man name must match exe ie currently `tidy5.1` not `tidy.1`
## also could use `manpath` command output to determine target install path ## also could use `manpath` command output to determine target install path
message("*** Generating man ***") message(STATUS "*** Generating man ***")
set(TIDY_MANFILE tidy5.1) set(TIDY_MANFILE tidy5.1)
set(TIDY1XSL ../documentation/tidy1.xsl) set(TIDY1XSL ../documentation/tidy1.xsl)
set(TIDYHELP ${CMAKE_BINARY_DIR}/tidy-help.xml) set(TIDYHELP ${CMAKE_BINARY_DIR}/tidy-help.xml)
set(TIDYCONFIG ../documentation/tidy-config.xml) set(TIDYCONFIG ${CMAKE_BINARY_DIR}/tidy-config.xml)
add_custom_target(man ALL DEPENDS "${CMAKE_BINARY_DIR}/tidy5") add_custom_target(man ALL DEPENDS "${CMAKE_BINARY_DIR}/tidy5")
# run built EXE to generate xml output # run built EXE to generate xml output
@ -196,7 +196,7 @@ if (UNIX)
add_custom_command( add_custom_command(
TARGET man TARGET man
COMMAND ${CMAKE_BINARY_DIR}/tidy5 -xml-config > ${TIDYCONFIG} COMMAND ${CMAKE_BINARY_DIR}/tidy5 -xml-config > ${TIDYCONFIG}
COMMENT "Generate ${TIDYHELP}" COMMENT "Generate ${TIDYCONFIG}"
VERBATIM VERBATIM
) )