diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-07-01 12:49:36 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-07-01 12:49:36 (GMT) |
commit | a43a65bf34285b55393fc1d8ec9df008e010bdd2 (patch) | |
tree | 8a48b0a91beb78179ae5ff1fe9ef3353b8ab3df2 /Source/cmIfCommand.h | |
parent | e0c3d1e959961bc4f531bee5bff23bc7607ef7af (diff) | |
download | CMake-a43a65bf34285b55393fc1d8ec9df008e010bdd2.zip CMake-a43a65bf34285b55393fc1d8ec9df008e010bdd2.tar.gz CMake-a43a65bf34285b55393fc1d8ec9df008e010bdd2.tar.bz2 |
consolidated IF handling and added checks for bad arguments
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r-- | Source/cmIfCommand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h index 2453c3c..b9a4fbb 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); }; |