summaryrefslogtreecommitdiffstats
path: root/Source/cmElseCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r--Source/cmElseCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx
index 4aca32a..2117c39 100644
--- a/Source/cmElseCommand.cxx
+++ b/Source/cmElseCommand.cxx
@@ -78,7 +78,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string>& args)
{
def = m_Makefile->GetDefinition(args[0].c_str());
def2 = m_Makefile->GetDefinition(args[2].c_str());
- if(cmSystemTools::IsOff(def) || cmSystemTools::IsOff(def2))
+ if(!cmSystemTools::IsOff(def) && !cmSystemTools::IsOff(def2))
{
f = new cmIfFunctionBlocker();
}
@@ -88,7 +88,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string>& args)
{
def = m_Makefile->GetDefinition(args[0].c_str());
def2 = m_Makefile->GetDefinition(args[2].c_str());
- if(cmSystemTools::IsOff(def) && cmSystemTools::IsOff(def2))
+ if(!cmSystemTools::IsOff(def) || !cmSystemTools::IsOff(def2))
{
f = new cmIfFunctionBlocker();
}