summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-03 12:13:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-03 12:13:54 (GMT)
commitf3e58aeb7d6d63c6c0a21a8f0ba58226bdfb602a (patch)
treee48ed004b75a4f7d652474e6b9862872c609bc50 /Source/cmIfCommand.h
parent1f203c286824b4d87278fea6982c35097b080d4b (diff)
downloadCMake-f3e58aeb7d6d63c6c0a21a8f0ba58226bdfb602a.zip
CMake-f3e58aeb7d6d63c6c0a21a8f0ba58226bdfb602a.tar.gz
CMake-f3e58aeb7d6d63c6c0a21a8f0ba58226bdfb602a.tar.bz2
BUG: When regular expression failes to compile, produce error: Fixes part of Bug #1025 - CMake silently ignores regular expression failure
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r--Source/cmIfCommand.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 4dcf884..af6dc7b 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -159,9 +159,10 @@ public:
}
// this is a shared function for both If and Else to determine if
- // the arguments were valid, and if so, was the response true
+ // the arguments were valid, and if so, was the response true. If there is an
+ // error, the errorString will be set.
static bool IsTrue(const std::vector<std::string> &args,
- bool &isValid, const cmMakefile *mf);
+ char** errorString, const cmMakefile *mf);
// Get a definition from the makefile. If it doesn't exist,
// return the original string.