diff --git a/Source/cmSiteNameCommand.cxx b/Source/cmSiteNameCommand.cxx index 8e5988a28..5dcc984cc 100644 --- a/Source/cmSiteNameCommand.cxx +++ b/Source/cmSiteNameCommand.cxx @@ -102,8 +102,8 @@ bool cmSiteNameCommand::InitialPass(std::vector const& args) nslookup_cmd += " "; nslookup_cmd += host; std::string nsOutput; - cmSystemTools::RunCommand(nslookup_cmd.c_str(), - nsOutput); + cmSystemTools::RunSingleCommand(nslookup_cmd.c_str(), + &nsOutput); // got the domain name if (nsOutput.length())