mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-06 06:38:37 -06:00
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.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user