From: <ai...@us...> - 2010-01-08 02:40:25
|
Revision: 10747 http://plplot.svn.sourceforge.net/plplot/?rev=10747&view=rev Author: airwin Date: 2010-01-08 02:40:14 +0000 (Fri, 08 Jan 2010) Log Message: ----------- Expose XML_DECL in cmake to give path to xml.dcl This exposes XML_DECL to cmake as a user settable option. This allows "make validate" to be used on systems that have xml.dcl in locations other than "/usr/share/xml/declaration/xml.dcl". For example, on Macs that have installed OpenSP via MacPorts, the file will be in "/opt/local/share/OpenSP/xml.dcl". This also allows one to specify the docbook 4.2 catalog by prepending "-c /path/to/docbook-42.cat " to CML_DECL. It's a little bit of a cheat; the catalog probably get it's own cmake variable (or copy it into doc/docbook/src/catalog). Thanks to David MacMahon for this patch. Modified Paths: -------------- trunk/cmake/modules/docbook.cmake Modified: trunk/cmake/modules/docbook.cmake =================================================================== --- trunk/cmake/modules/docbook.cmake 2010-01-08 02:31:50 UTC (rev 10746) +++ trunk/cmake/modules/docbook.cmake 2010-01-08 02:40:14 UTC (rev 10747) @@ -49,7 +49,7 @@ set(PLPLOT_WEBSITE "plplot.sourceforge.net" CACHE STRING "PLplot web site") # Required for validation regardless of whether BUILD_DOC is set -set(XML_DECL /usr/share/xml/declaration/xml.dcl) +set(XML_DECL "/usr/share/xml/declaration/xml.dcl" CACHE STRING "Full path to xml.dcl file.") set(DOCBOOK_DTD_PUBID "-//OASIS//DTD DocBook XML V4.2//EN") find_program(ONSGMLS onsgmls) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |