mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
ENH: also store the group matches from IF( MATCHES) in CMAKE_MATCH_(0..9)
Alex
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "cmCommand.h"
|
||||
|
||||
class cmMakefile;
|
||||
namespace cmsys
|
||||
{
|
||||
class RegularExpression;
|
||||
@@ -122,6 +123,8 @@ public:
|
||||
}
|
||||
|
||||
cmTypeMacro(cmStringCommand, cmCommand);
|
||||
static void ClearMatches(cmMakefile* mf);
|
||||
static void StoreMatches(cmMakefile* mf, cmsys::RegularExpression& re);
|
||||
protected:
|
||||
bool HandleConfigureCommand(std::vector<std::string> const& args);
|
||||
bool HandleAsciiCommand(std::vector<std::string> const& args);
|
||||
@@ -137,8 +140,6 @@ protected:
|
||||
bool HandleSubstringCommand(std::vector<std::string> const& args);
|
||||
bool HandleStripCommand(std::vector<std::string> const& args);
|
||||
bool HandleRandomCommand(std::vector<std::string> const& args);
|
||||
void ClearMatches();
|
||||
void StoreMatches(cmsys::RegularExpression& re);
|
||||
|
||||
class RegexReplacement
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user