Commit 4ab88500 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cmake-E-autogen-crash'

132c40a8 cmake: Validate -E cmake_autogen argument count (#14545)
cc52b7d5 Merge branch 'cmake-E-automoc-crash' into cmake-E-autogen-crash
9ef66f2b cmake: Validate -E cmake_automoc argument count (#14545)
parents 93fe461e 132c40a8
......@@ -632,7 +632,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
{
return cmcmd::ExecuteEchoColor(args);
}
else if (args[1] == "cmake_autogen")
else if (args[1] == "cmake_autogen" && args.size() >= 4)
{
cmQtAutoGenerators autogen;
const char *config = args[3].empty() ? 0 : args[3].c_str();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment