ENH: Use new RunCommand
This commit is contained in:
parent
41feb1f86b
commit
2c33b3db65
|
@ -102,8 +102,8 @@ bool cmSiteNameCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
nslookup_cmd += " ";
|
nslookup_cmd += " ";
|
||||||
nslookup_cmd += host;
|
nslookup_cmd += host;
|
||||||
std::string nsOutput;
|
std::string nsOutput;
|
||||||
cmSystemTools::RunCommand(nslookup_cmd.c_str(),
|
cmSystemTools::RunSingleCommand(nslookup_cmd.c_str(),
|
||||||
nsOutput);
|
&nsOutput);
|
||||||
|
|
||||||
// got the domain name
|
// got the domain name
|
||||||
if (nsOutput.length())
|
if (nsOutput.length())
|
||||||
|
|
Loading…
Reference in New Issue