diff options
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index bb01116..3da5a06 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -236,10 +236,13 @@ int do_cmake(int ac, char** av) { cmSystemTools::Error("No script specified for argument -P"); } - script_mode = true; - args.push_back(av[i]); - i++; - args.push_back(av[i]); + else + { + script_mode = true; + args.push_back(av[i]); + i++; + args.push_back(av[i]); + } } else { |