diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-02-20 19:46:33 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-02-20 19:46:33 (GMT) |
commit | 51516613e83f15c31156ad0a503f270c746266e1 (patch) | |
tree | 788642df935ae161fd40761bdbb4c11e0d800e6e /Source/cmakemain.cxx | |
parent | 413a595d372253ac770496e5ebb9012991705745 (diff) | |
download | CMake-51516613e83f15c31156ad0a503f270c746266e1.zip CMake-51516613e83f15c31156ad0a503f270c746266e1.tar.gz CMake-51516613e83f15c31156ad0a503f270c746266e1.tar.bz2 |
ENH: Ok, when doing cmake -P you should not have to squish filename next to -P, There should be space between
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 7c9a155..3b29bf5 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -185,8 +185,14 @@ int do_cmake(int ac, char** av) } else if (strncmp(av[i], "-P", strlen("-P")) == 0) { + if ( i == ac -1 ) + { + cmSystemTools::Error("No script specified for argument -P"); + } script_mode = true; args.push_back(av[i]); + i++; + args.push_back(av[i]); } else { |