summaryrefslogtreecommitdiffstats
path: root/Source/cmRST.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-17 19:16:44 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-17 19:23:45 (GMT)
commit89448a5bada1d5e18edfe70094e9a2e9fc6ca9f4 (patch)
treed142b19fc39ac2059c3bfa0c2c5f910ab11e0a0c /Source/cmRST.cxx
parent8f2b0c330706fe479fb0804b3526bf28503cd52a (diff)
downloadCMake-89448a5bada1d5e18edfe70094e9a2e9fc6ca9f4.zip
CMake-89448a5bada1d5e18edfe70094e9a2e9fc6ca9f4.tar.gz
CMake-89448a5bada1d5e18edfe70094e9a2e9fc6ca9f4.tar.bz2
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.
Diffstat (limited to 'Source/cmRST.cxx')
-rw-r--r--Source/cmRST.cxx2
1 files changed, 2 insertions, 0 deletions
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 <ctype.h>
@@ -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();
}
//----------------------------------------------------------------------------