From 633093fb192d74cc82320099f88e0d98877492e3 Mon Sep 17 00:00:00 2001
From: David MacMahon <davidm@astro.berkeley.edu>
Date: Thu, 7 Jan 2010 15:19:15 -0800
Subject: [PATCH] Exposes 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).
---
 cmake/modules/docbook.cmake |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cmake/modules/docbook.cmake b/cmake/modules/docbook.cmake
index 1b4ecf1..ce466d3 100644
--- a/cmake/modules/docbook.cmake
+++ b/cmake/modules/docbook.cmake
@@ -49,7 +49,7 @@ set(RCP "scp" CACHE STRING "Remote copy command")
 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)
 
-- 
1.6.6

