Fix for Cmake > 3.0.0

This commit is contained in:
Jim Derry 2015-03-08 13:39:46 +08:00
parent d5d880279e
commit 08d037b6af

View file

@ -185,28 +185,22 @@ if (UNIX)
# run built EXE to generate xml output # run built EXE to generate xml output
add_custom_command( add_custom_command(
OUTPUT ${TIDYHELP} TARGET man
COMMAND ${CMAKE_BINARY_DIR}/tidy5 -xml-help > ${TIDYHELP} COMMAND ${CMAKE_BINARY_DIR}/tidy5 -xml-help > ${TIDYHELP}
COMMENT "Generate ${TIDYHELP}" COMMENT "Generate ${TIDYHELP}"
VERBATIM VERBATIM
) )
# repeated for tidy-config.xml
# run xsltproc to generate the install files.. # run xsltproc to generate the install files..
add_custom_command( add_custom_command(
TARGET man TARGET man
SOURCE ${TIDYHELP} DEPENDS ${TIDYHELP}
COMMAND xsltproc ARGS ${TIDY1XSL} ${TIDYHELP} > ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} COMMAND xsltproc ARGS ${TIDY1XSL} ${TIDYHELP} > ${CMAKE_BINARY_DIR}/${TIDY_MANFILE}
OUTPUTS ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} COMMENT "Generate ${TIDY_MANFILE}"
VERBATIM VERBATIM
)
add_custom_command(
TARGET man
SOURCE man
DEPENDS ${CMAKE_BINARY_DIR}/${TIDY_MANFILE}
) )
# repeated for quickref.html - may need different targets...
install(FILES ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} DESTINATION local/man/man1) install(FILES ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} DESTINATION local/man/man1)
# add the quickref.html install
endif () endif ()
endif () endif ()