aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindXSLTPROC.cmake
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2014-11-17 21:12:54 +0100
committerJörg Mayer <jmayer@loplof.de>2014-11-17 20:15:01 +0000
commit7a7a7639f22a14e8ea24d7870e29177265cec1f6 (patch)
tree60728695f6be7851b8b0ed02d1b6d80c4cf47894 /cmake/modules/FindXSLTPROC.cmake
parent4a86d622b1d7c66f30e3ccaedebcc0b9a93c96c5 (diff)
cmake:
Avoide rebuilding the guides each and every time. Don't print the single file guides to stdout. Change-Id: Ie94fc4b24676e9abc7258c4ea1c7fd3049a96fb6 Reviewed-on: https://code.wireshark.org/review/5367 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'cmake/modules/FindXSLTPROC.cmake')
-rw-r--r--cmake/modules/FindXSLTPROC.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/FindXSLTPROC.cmake b/cmake/modules/FindXSLTPROC.cmake
index f1b721ab81..c780dcd5d8 100644
--- a/cmake/modules/FindXSLTPROC.cmake
+++ b/cmake/modules/FindXSLTPROC.cmake
@@ -36,9 +36,11 @@ MACRO(XML2HTML _guide _mode _xmlsources _gfxsources)
IF(${_mode} STREQUAL "chunked")
SET(_basedir ${_guide}_html_chunked)
SET(_STYLESHEET "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
+ SET(_modeparams --noout)
ELSE() # single-page
SET(_basedir ${_guide}_html)
SET(_STYLESHEET "http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl")
+ SET(_modeparams --output ${_basedir}/index.html)
ENDIF()
SET(_outdir ${CMAKE_CURRENT_BINARY_DIR}/${_basedir})
@@ -85,6 +87,7 @@ MACRO(XML2HTML _guide _mode _xmlsources _gfxsources)
--stringparam section.label.includes.component.label 1
--stringparam html.stylesheet ws.css
--nonet
+ ${_modeparams}
${_STYLESHEET}
${_source}
COMMAND chmod