ENH: Use the new signature
This commit is contained in:
parent
8a31793c89
commit
32c2ed2ef3
@ -50,8 +50,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
if(m_Makefile->GetDefinition("UNIX"))
|
if(m_Makefile->GetDefinition("UNIX"))
|
||||||
{
|
{
|
||||||
buildname = "";
|
buildname = "";
|
||||||
cmSystemTools::RunCommand("uname -a",
|
cmSystemTools::RunSingleCommand("uname -a", &buildname);
|
||||||
buildname);
|
|
||||||
if(buildname.length())
|
if(buildname.length())
|
||||||
{
|
{
|
||||||
std::string RegExp = "([^ ]*) [^ ]* ([^ ]*) ";
|
std::string RegExp = "([^ ]*) [^ ]* ([^ ]*) ";
|
||||||
|
@ -99,7 +99,9 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
|
|||||||
{
|
{
|
||||||
finalCommand += runArgs;
|
finalCommand += runArgs;
|
||||||
}
|
}
|
||||||
cmSystemTools::RunCommand(finalCommand.c_str(), output, retVal, 0, false);
|
int timeout = 0;
|
||||||
|
cmSystemTools::RunSingleCommand(finalCommand.c_str(), &output, &retVal,
|
||||||
|
0, false, timeout);
|
||||||
// set the run var
|
// set the run var
|
||||||
char retChar[1000];
|
char retChar[1000];
|
||||||
sprintf(retChar,"%i",retVal);
|
sprintf(retChar,"%i",retVal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user