summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-02 12:36:31 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-02 12:36:31 (GMT)
commit1f203c286824b4d87278fea6982c35097b080d4b (patch)
tree5647738504e3705353e6273ab859e1259bdaa804
parentf8f388b4ff083a9d891018fdd3b65cdeaadfa9a8 (diff)
downloadCMake-1f203c286824b4d87278fea6982c35097b080d4b.zip
CMake-1f203c286824b4d87278fea6982c35097b080d4b.tar.gz
CMake-1f203c286824b4d87278fea6982c35097b080d4b.tar.bz2
BUG: these flags do not take arguments, so they do not really need to check if they are last. Fixes Bug #1020 - ctest doesn't parse its options correctly
-rw-r--r--Source/cmCTest.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 8cefab9..a98d279 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -4609,7 +4609,7 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
i++;
m_BuildTarget = args[i];
}
- if(arg.find("--build-nocmake",0) == 0 && i < args.size() - 1)
+ if(arg.find("--build-nocmake",0) == 0)
{
m_BuildNoCMake = true;
}
@@ -4618,7 +4618,7 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
i++;
m_BuildRunDir = args[i];
}
- if(arg.find("--build-two-config",0) == 0 && i < args.size() - 1)
+ if(arg.find("--build-two-config",0) == 0)
{
m_BuildTwoConfig = true;
}
@@ -4642,7 +4642,7 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
i++;
m_BuildMakeProgram = args[i];
}
- if(arg.find("--build-noclean",0) == 0 && i < args.size() - 1)
+ if(arg.find("--build-noclean",0) == 0)
{
m_BuildNoClean = true;
}