Detect and warn about wrong configuration file flavor

This commit is contained in:
Boris Kolpackov 2021-11-04 09:05:51 +02:00
parent 5df3ee0dc1
commit 705b1bd474

View File

@ -237,6 +237,16 @@ namespace build2
substitute_special (name);
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;
}