mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
hopefull another fix to if statements
This commit is contained in:
@@ -21,6 +21,13 @@ bool cmIfFunctionBlocker::
|
||||
IsFunctionBlocked(const char *name, const std::vector<std::string> &args,
|
||||
cmMakefile &mf)
|
||||
{
|
||||
// always let if statements through
|
||||
if (!strcmp(name,"IF"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// watch for our ELSE or ENDIF
|
||||
if (!strcmp(name,"ELSE") || !strcmp(name,"ENDIF"))
|
||||
{
|
||||
if (args == m_Args)
|
||||
|
||||
Reference in New Issue
Block a user