diff options
author | Brad King <brad.king@kitware.com> | 2003-06-23 14:10:12 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-23 14:10:12 -0400 |
commit | 38482b46d171bde2073fadab65118c5c9df29e0f (patch) | |
tree | cce4d062f94612f514f2b13cff42f5426c531b4b /Source/cmBuildNameCommand.cxx | |
parent | b2368399d91b710616a3c53fc39bd8e11971b42f (diff) | |
download | cmake-38482b46d171bde2073fadab65118c5c9df29e0f.tar.gz |
ENH: Merged use of the kwsys RegularExpression class instead of cmRegularExpression.
Diffstat (limited to 'Source/cmBuildNameCommand.cxx')
-rw-r--r-- | Source/cmBuildNameCommand.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx index cec21a0a80..a650fad2e5 100644 --- a/Source/cmBuildNameCommand.cxx +++ b/Source/cmBuildNameCommand.cxx @@ -16,6 +16,8 @@ =========================================================================*/ #include "cmBuildNameCommand.h" +#include <cmsys/RegularExpression.hxx> + // cmBuildNameCommand bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args) { @@ -28,7 +30,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args) if(cacheValue) { // do we need to correct the value? - cmRegularExpression reg("[()/]"); + cmsys::RegularExpression reg("[()/]"); if (reg.find(cacheValue)) { std::string cv = cacheValue; @@ -53,7 +55,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args) if(buildname.length()) { std::string RegExp = "([^ ]*) [^ ]* ([^ ]*) "; - cmRegularExpression reg( RegExp.c_str() ); + cmsys::RegularExpression reg( RegExp.c_str() ); if(reg.find(buildname.c_str())) { buildname = reg.match(1) + "-" + reg.match(2); |