summaryrefslogtreecommitdiff
path: root/Source/cmIfCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-07-01 08:49:36 -0400
committerKen Martin <ken.martin@kitware.com>2002-07-01 08:49:36 -0400
commita43a65bf34285b55393fc1d8ec9df008e010bdd2 (patch)
tree8a48b0a91beb78179ae5ff1fe9ef3353b8ab3df2 /Source/cmIfCommand.h
parente0c3d1e959961bc4f531bee5bff23bc7607ef7af (diff)
downloadcmake-a43a65bf34285b55393fc1d8ec9df008e010bdd2.tar.gz
consolidated IF handling and added checks for bad arguments
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r--Source/cmIfCommand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 2453c3cdd3..b9a4fbb418 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -98,6 +98,11 @@ public:
"and STRGREATER. LESS and GREATER do numeric comparison while "
"STRLESS and STRGREATER do string comparisons.";
}
+
+ // this is a shared function for both If and Else to determine if
+ // the arguments were valid, and if so, was the response true
+ static bool IsTrue(const std::vector<std::string> &args,
+ bool &isValid, const cmMakefile *mf);
cmTypeMacro(cmIfCommand, cmCommand);
};