mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-11 17:49:38 -06:00
BUG: or and and were inverted.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ bool cmIfCommand::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();
|
||||
}
|
||||
@@ -116,7 +116,7 @@ bool cmIfCommand::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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user