From e2ec0e96a0a36b15b15744a921244a2189762530 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 30 Sep 2015 16:04:49 +0200 Subject: [PATCH] Use tidy.xsl from documentation/ instead of build/documentation. --- CMakeLists.txt | 6 +++++- documentation/{tidy1.xsl => tidy1.xsl.in} | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) rename documentation/{tidy1.xsl => tidy1.xsl.in} (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 552b6cf..5648003 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,10 +213,14 @@ if (UNIX) ## also could use `manpath` command output to determine target install path set(TIDY_MANFILE ${LIB_NAME}.1) message(STATUS "*** Generating man ${TIDY_MANFILE} custom commands...") - set(TIDY1XSL ${CMAKE_CURRENT_SOURCE_DIR}/build/documentation/tidy1.xsl) + set(TIDY1XSL ${CMAKE_CURRENT_BINARY_DIR}/documentation/tidy1.xsl) set(TIDYHELP ${CMAKE_CURRENT_BINARY_DIR}/tidy-help.xml) set(TIDYCONFIG ${CMAKE_CURRENT_BINARY_DIR}/tidy-config.xml) add_custom_target(man ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME}") + configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/documentation/tidy1.xsl.in + ${TIDY1XSL} + ) # run built EXE to generate xml output add_custom_command( diff --git a/documentation/tidy1.xsl b/documentation/tidy1.xsl.in similarity index 99% rename from documentation/tidy1.xsl rename to documentation/tidy1.xsl.in index 5058b97..ad213b4 100644 --- a/documentation/tidy1.xsl +++ b/documentation/tidy1.xsl.in @@ -24,7 +24,7 @@ the $CONFIG variable, declared here: --> - +