Fix using fop from CMake
authorrbalint <rbalint@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 10 Oct 2013 05:02:50 +0000 (05:02 +0000)
committerrbalint <rbalint@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 10 Oct 2013 05:02:50 +0000 (05:02 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@52484 f5534014-38df-0310-8fa8-9805f1628bb7

cmake/modules/FindXSLTPROC.cmake
docbook/CMakeLists.txt

index fbbb200ed4ea0cf768c3dcfaddf54053942e25cd..a8a70dcf2f71f1fbc93a77fa2152267edc095f02 100644 (file)
@@ -99,7 +99,7 @@ ENDMACRO(XML2HTML)
 #      custom_layer_pdf.xsl
 #      A4 or letter
 #)
-MACRO(XML2PDF _output _sources _stylesheet _paper)
+MACRO(XML2PDF _FOP_EXECUTABLE _output _sources _stylesheet _paper)
     # FIXME: How do I extract the first element of a variable containing a
     # list of values? Isn't there a "cleaner" solution?
     # Oh, and I have no idea why I can't directly use _source instead of
@@ -122,7 +122,7 @@ MACRO(XML2PDF _output _sources _stylesheet _paper)
        # FIXME: The images for tip, warning and note (and maybe more of those)
        #   are not found by fop. I have no idea why "system" images don't work
        #   the way other images work.
-       COMMAND ${FOP_EXECUTABLE}
+       COMMAND ${_FOP_EXECUTABLE}
            ${_output}.fo
            ${_output}
        DEPENDS
index 76df09dd4c75fd9470c64f89bbcaf1b45ec592e3..f0acb951c336690dc7b915c058acd6c849ca10e1 100644 (file)
@@ -289,6 +289,7 @@ XML2HTML(
 #      Test the effect of this on letter and a4 printers first (ps and non-ps).
 
 XML2PDF(
+       ${FOP_EXECUTABLE}
        user-guide-a4.pdf
        WSUG_SOURCE
        custom_layer_pdf.xsl
@@ -296,6 +297,7 @@ XML2PDF(
 )
 
 XML2PDF(
+       ${FOP_EXECUTABLE}
        user-guide-us.pdf
        WSUG_SOURCE
        custom_layer_pdf.xsl
@@ -334,6 +336,7 @@ XML2HTML(
 )
 
 XML2PDF(
+       ${FOP_EXECUTABLE}
        developer-guide-a4.pdf
        WSDG_SOURCE
        custom_layer_pdf.xsl
@@ -341,6 +344,7 @@ XML2PDF(
 )
 
 XML2PDF(
+       ${FOP_EXECUTABLE}
        developer-guide-us.pdf
        WSDG_SOURCE
        custom_layer_pdf.xsl