summaryrefslogtreecommitdiffstats
path: root/Source/cmElseCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r--Source/cmElseCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx
index ff396fc..51e9f25 100644
--- a/Source/cmElseCommand.cxx
+++ b/Source/cmElseCommand.cxx
@@ -26,8 +26,7 @@ bool cmElseCommand::Invoke(std::vector<std::string>& args)
// check to see if the argument is defined first
const char *def = m_Makefile->GetDefinition(args[0].c_str());
- if(def && strcmp(def,"0") && strcmp(def,"false") && strcmp(def,"") &&
- strcmp(def,"NOTFOUND"))
+ if(cmSystemTools::IsOn(def))
{
// add block
cmIfFunctionBlocker *f = new cmIfFunctionBlocker();