Hendrik,

I actually am using your scripts, but on Windows XP and that's where I'm having 
the troubles.  Everything works except that last step.  I print out the 
XSL_TRANSFORM_COMMAND right before add_custom_command:

-- XSL_TRANSFORM_COMMAND = 
C:/WINDOWS/system32/java.exe;-cp;:C:/opt/saxon6-5-5/saxon.jar:C:/opt/docbook-xsl-saxon-1.00/docbook-xsl-saxon_1.00.jar;com.icl.saxon.StyleSheet;C:/workspace/SIS/docs/SIS.xml;http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl

Here is the add_custom_command:

  add_custom_command (
    OUTPUT ${ARGN}
    COMMAND ${XSL_TRANSFORM_COMMAND}
    DEPENDS "${infile}"
    VERBATIM
  )

Here is the resulting command:
C:\WINDOWS\system32\java.exe -cp 
:C:/opt/saxon6-5-5/saxon.jar:C:/opt/docbook-xsl-saxon-1.00/docbook-xsl-saxon_1.00.jar
 com.icl.saxon.StyleSheet C:/workspace/SIS/docs/SIS.xml 
http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl

Any suggestions on how you got this working in Windows XP?  Don't you get 
parsing errors from java.exe?  If I change the ":" to ";" in the above command 
for the -cp argument, everything works.

--
Shane

-----Original Message-----
From: Hendrik Sattler [mailto:[email protected]] 
Sent: Wednesday, September 30, 2009 2:00 AM
To: Dixon, Shane
Cc: [email protected]
Subject: Re: [CMake] Problems with ";" turning into spaces in add_command

Zitat von "Dixon, Shane" <[email protected]>:

> I'm trying to get Docbook working in Windows XP with saxon 6.5.  I   
> can get almost all the way to the last step and the command dies.    
> At the bottom of this e-mail is the relevant code.  Here is what the  
>  message() call prints:

May you want to try the cmake scripts I wrote for OpenOBEX? They  
support xsltproc, saxon-6.5 and xalan-2.x (first one suggested because  
it's the fastest).
You can find them at:
http://gitorious.org/openobex/mainline/trees/master/CMakeModules

You need the *Xslt.cmake and the *Docbook.cmake. Please report back  
any changes. I would like to submit them for inclusion with cmake,  
later on.

HS


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to