mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
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
This commit is contained in:
parent
f8f388b4ff
commit
1f203c2868
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user