Merge topic 'help-replace-version'

89448a5 cmRST: Substitute CMake version for |release| as Sphinx does
This commit is contained in:
Brad King 2013-10-18 10:02:51 -04:00 committed by CMake Topic Stage
commit 36d8d987c7
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}
//----------------------------------------------------------------------------