diff options
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 5dab24b..0701ee2 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -48,8 +48,7 @@ bool cmIfCommand::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)) { // do nothing } |