mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
make sure ; expansion is done in all commands
This commit is contained in:
@@ -30,12 +30,12 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
}
|
||||
std::string doc = "Path to a program.";
|
||||
size_t size = argsIn.size();
|
||||
std::vector<std::string> args;
|
||||
std::vector<std::string> argst;
|
||||
for(unsigned int j = 0; j < size; ++j)
|
||||
{
|
||||
if(argsIn[j] != "DOC")
|
||||
{
|
||||
args.push_back(argsIn[j]);
|
||||
argst.push_back(argsIn[j]);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -46,6 +46,10 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
break;
|
||||
}
|
||||
}
|
||||
std::vector<std::string> args;
|
||||
cmSystemTools::ExpandListArguments(argst, args);
|
||||
|
||||
|
||||
std::vector<std::string>::iterator i = args.begin();
|
||||
// Use the first argument as the name of something to be defined
|
||||
const char* define = (*i).c_str();
|
||||
|
||||
Reference in New Issue
Block a user