From 78da2d06992d9e49cab3c43147452ccdd30aeeee Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Thu, 9 Aug 2001 14:58:47 -0400 Subject: BUG: or and and were inverted. --- Source/cmElseCommand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/cmElseCommand.cxx') diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx index 4aca32ae79..2117c397a9 100644 --- a/Source/cmElseCommand.cxx +++ b/Source/cmElseCommand.cxx @@ -78,7 +78,7 @@ bool cmElseCommand::InitialPass(std::vector& 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& 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(); } -- cgit v1.2.1