diff options
author | Brad King <brad.king@kitware.com> | 2003-06-23 18:10:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-23 18:10:12 (GMT) |
commit | 38482b46d171bde2073fadab65118c5c9df29e0f (patch) | |
tree | cce4d062f94612f514f2b13cff42f5426c531b4b /Source/cmIfCommand.cxx | |
parent | b2368399d91b710616a3c53fc39bd8e11971b42f (diff) | |
download | CMake-38482b46d171bde2073fadab65118c5c9df29e0f.zip CMake-38482b46d171bde2073fadab65118c5c9df29e0f.tar.gz CMake-38482b46d171bde2073fadab65118c5c9df29e0f.tar.bz2 |
ENH: Merged use of the kwsys RegularExpression class instead of cmRegularExpression.
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 119acc6..cf925df 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -17,6 +17,8 @@ #include "cmIfCommand.h" #include <stdlib.h> // required for atof +#include <cmsys/RegularExpression.hxx> + bool cmIfFunctionBlocker:: IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf) { @@ -217,7 +219,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args, if (args.size() == 3 && (args[1] == "MATCHES")) { def = cmIfCommand::GetVariableOrString(args[0].c_str(), makefile); - cmRegularExpression regEntry(args[2].c_str()); + cmsys::RegularExpression regEntry(args[2].c_str()); // check for black line or comment if (!regEntry.find(def)) |