[CMake] Problems with ";" turning into spaces in add_command
Dixon, Shane
Shane.Dixon at atmel.com
Wed Sep 30 10:22:25 EDT 2009
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:post at hendrik-sattler.de]
Sent: Wednesday, September 30, 2009 2:00 AM
To: Dixon, Shane
Cc: cmake at cmake.org
Subject: Re: [CMake] Problems with ";" turning into spaces in add_command
Zitat von "Dixon, Shane" <Shane.Dixon at atmel.com>:
> 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
More information about the CMake
mailing list