diff options
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r-- | Source/cmElseCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx index bebee88..b905945 100644 --- a/Source/cmElseCommand.cxx +++ b/Source/cmElseCommand.cxx @@ -51,7 +51,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(cmSystemTools::IsOn(def)) + if(!cmSystemTools::IsOff(def)) { // add block cmIfFunctionBlocker *f = new cmIfFunctionBlocker(); |