summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-08-06 21:01:26 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-08-06 21:01:26 (GMT)
commitd7702b4c302a15b2b20dc747112605ab0d84f1a5 (patch)
tree3a013a875934452cb25e3f2b26a4763c6a971a49 /Source/cmIfCommand.h
parentf70e0d6b1ee7aa36a51ad7b4c955a9d0979ddc0a (diff)
downloadCMake-d7702b4c302a15b2b20dc747112605ab0d84f1a5.zip
CMake-d7702b4c302a15b2b20dc747112605ab0d84f1a5.tar.gz
CMake-d7702b4c302a15b2b20dc747112605ab0d84f1a5.tar.bz2
added new if commands
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r--Source/cmIfCommand.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 3a2b269..5355bc0 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -53,7 +53,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class cmIfFunctionBlocker : public cmFunctionBlocker
{
public:
- cmIfFunctionBlocker() {m_Not = false;}
+ cmIfFunctionBlocker() {}
virtual ~cmIfFunctionBlocker() {}
virtual bool IsFunctionBlocked(const char *name,
const std::vector<std::string> &args,
@@ -63,8 +63,7 @@ public:
cmMakefile &mf);
virtual void ScopeEnded(cmMakefile &mf);
- std::string m_Define;
- bool m_Not;
+ std::vector<std::string> m_Args;
};
/** \class cmIfCommand
@@ -114,8 +113,9 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "IF (define) Starts an if block. Optionally there it can be invoked as\n"
- "IF (NOT Define) the matching ELSE and ENDIF require the NOT as well.";
+ "IF (define) Starts an if block. Optionally it can be invoked "
+ "using (NOT define) (def AND def2) (def OR def2) (def MATCHES def2) "
+ "MATCHES checks if def matches the regular expression def2 ";
}
cmTypeMacro(cmIfCommand, cmCommand);