mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
BUG: prevent -P or script to be passed as homedirectory
This commit is contained in:
+2
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user