diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-01-28 18:00:36 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-01-28 18:00:36 (GMT) |
commit | e9eccb00981bdbfec0dc793b1e1eeb06fe4799eb (patch) | |
tree | 67c844f88b8a0c28ac7601263172b49c6229d1f9 /Source/cmake.cxx | |
parent | 51750d055298acafc3d2f0168b85381c9f4acfad (diff) | |
download | CMake-e9eccb00981bdbfec0dc793b1e1eeb06fe4799eb.zip CMake-e9eccb00981bdbfec0dc793b1e1eeb06fe4799eb.tar.gz CMake-e9eccb00981bdbfec0dc793b1e1eeb06fe4799eb.tar.bz2 |
BUG: prevent -P or script to be passed as homedirectory
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 3 |
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) { |