Просмотр исходного кода

BUG: prevent -P or script to be passed as homedirectory

Andy Cedilnik 21 лет назад
Родитель
Сommit
e9eccb0098
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Source/cmake.cxx

+ 2 - 1
Source/cmake.cxx

@@ -330,9 +330,10 @@ void cmake::SetArgs(const std::vector<std::string>& args)
       {
       // skip for now
       }
-    else if(arg.find("--script",0) == 0)
+    else if(arg.find("-P",0) == 0)
       {
       // skip for now
+      i++;
       }
     else if(arg.find("--debug-trycompile",0) == 0)
       {