summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-07-02 18:38:39 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-07-02 18:38:39 (GMT)
commitae2723878e08a8aa016869e90711e260d981df38 (patch)
tree957792a95e2449a9d0d1976b9b37e2457565b5cb /Source/cmake.cxx
parent4e80d8e2b2f7f36e0b4a5c3ba180aec7dc65abc2 (diff)
downloadCMake-ae2723878e08a8aa016869e90711e260d981df38.zip
CMake-ae2723878e08a8aa016869e90711e260d981df38.tar.gz
CMake-ae2723878e08a8aa016869e90711e260d981df38.tar.bz2
better arg support
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 98b95c7..4fe0f11 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -87,23 +87,23 @@ void cmake::SetArgs(cmMakefile& builder, const std::vector<std::string>& args)
for(unsigned int i=1; i < args.size(); ++i)
{
std::string arg = args[i];
- if(arg.find("-H",0) != std::string::npos)
+ if(arg.find("-H",0) == 0)
{
std::string path = arg.substr(2);
builder.SetHomeDirectory(path.c_str());
}
- if(arg.find("-S",0) != std::string::npos)
+ if(arg.find("-S",0) == 0)
{
m_Local = true;
std::string path = arg.substr(2);
builder.SetStartDirectory(path.c_str());
}
- if(arg.find("-O",0) != std::string::npos)
+ if(arg.find("-O",0) == 0)
{
std::string path = arg.substr(2);
builder.SetStartOutputDirectory(path.c_str());
}
- if(arg.find("-B",0) != std::string::npos)
+ if(arg.find("-B",0) == 0)
{
std::string path = arg.substr(2);
builder.SetHomeOutputDirectory(path.c_str());