Detect and warn about wrong configuration file flavor
This commit is contained in:
parent
5df3ee0dc1
commit
705b1bd474
@ -237,6 +237,16 @@ namespace build2
|
|||||||
substitute_special (name);
|
substitute_special (name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (s.compare (i, 11, "cmakedefine") == 0)
|
||||||
|
{
|
||||||
|
warn (l) << "#cmakedefine in autoconf configuration file" <<
|
||||||
|
info << "did you forget to specify autoconf.flavor=cmake?";
|
||||||
|
}
|
||||||
|
else if (s.compare (i, 11, "mesondefine") == 0)
|
||||||
|
{
|
||||||
|
warn (l) << "#mesondefine in autoconf configuration file" <<
|
||||||
|
info << "did you forget to specify autoconf.flavor=meson?";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user