summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-28 18:00:36 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-28 18:00:36 (GMT)
commite9eccb00981bdbfec0dc793b1e1eeb06fe4799eb (patch)
tree67c844f88b8a0c28ac7601263172b49c6229d1f9
parent51750d055298acafc3d2f0168b85381c9f4acfad (diff)
downloadCMake-e9eccb00981bdbfec0dc793b1e1eeb06fe4799eb.zip
CMake-e9eccb00981bdbfec0dc793b1e1eeb06fe4799eb.tar.gz
CMake-e9eccb00981bdbfec0dc793b1e1eeb06fe4799eb.tar.bz2
BUG: prevent -P or script to be passed as homedirectory
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 79aae1a..6838d39 100644
--- a/Source/cmake.cxx
+++ b/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)
{