summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-05 13:17:10 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-05 13:17:10 (GMT)
commit4ab88500ae3ac3b0be9e8be4df0d00f69efd9ff8 (patch)
treee1d22d88705314093b3a9addea90561f01390c18 /Source
parent93fe461e6c2ec650a2652367509cede78cf01455 (diff)
parent132c40a8a89f701bc4cf4de8a716b5d02233d151 (diff)
downloadCMake-4ab88500ae3ac3b0be9e8be4df0d00f69efd9ff8.zip
CMake-4ab88500ae3ac3b0be9e8be4df0d00f69efd9ff8.tar.gz
CMake-4ab88500ae3ac3b0be9e8be4df0d00f69efd9ff8.tar.bz2
Merge topic 'cmake-E-autogen-crash'
132c40a cmake: Validate -E cmake_autogen argument count (#14545) cc52b7d Merge branch 'cmake-E-automoc-crash' into cmake-E-autogen-crash 9ef66f2 cmake: Validate -E cmake_automoc argument count (#14545)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmcmd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 26251b3..d4f464c 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -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();