From 89448a5bada1d5e18edfe70094e9a2e9fc6ca9f4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 17 Oct 2013 15:16:44 -0400 Subject: cmRST: Substitute CMake version for |release| as Sphinx does Sphinx provides a builtin substitution for the |release| version. Teach cmRST to replace this with the CMake version number too. --- Source/cmRST.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmRST.cxx b/Source/cmRST.cxx index 72c42d6..18a197b 100644 --- a/Source/cmRST.cxx +++ b/Source/cmRST.cxx @@ -12,6 +12,7 @@ #include "cmRST.h" #include "cmSystemTools.h" +#include "cmVersion.h" #include @@ -41,6 +42,7 @@ cmRST::cmRST(std::ostream& os, std::string const& docroot): "((\\|[^| \t\r\n]([^|\r\n]*[^| \t\r\n])?\\|)(__|_|))" "([^A-Za-z0-9_]|$)") { + this->Replace["|release|"] = cmVersion::GetCMakeVersion(); } //---------------------------------------------------------------------------- -- cgit v0.12