diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx index 12847cfe0..7daca42cf 100644 --- a/Source/cmElseCommand.cxx +++ b/Source/cmElseCommand.cxx @@ -65,6 +65,14 @@ bool cmElseCommand::InitialPass(std::vector const& args) } } + if (args.size() == 2 && (args[0] == "COMMAND")) + { + if(m_Makefile->CommandExists(args[1].c_str())) + { + f = new cmIfFunctionBlocker(); + } + } + if (args.size() == 2 && (args[0] == "NOT")) { def = m_Makefile->GetDefinition(args[1].c_str());