summaryrefslogtreecommitdiff
path: root/Source/cmSiteNameCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSiteNameCommand.cxx')
-rw-r--r--Source/cmSiteNameCommand.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmSiteNameCommand.cxx b/Source/cmSiteNameCommand.cxx
index 04e357ca8..2bdd1ad28 100644
--- a/Source/cmSiteNameCommand.cxx
+++ b/Source/cmSiteNameCommand.cxx
@@ -29,25 +29,25 @@ bool cmSiteNameCommand
paths.push_back("/bin");
paths.push_back("/sbin");
paths.push_back("/usr/local/bin");
-
+
const char* cacheValue
= this->Makefile->GetDefinition(args[0].c_str());
if(cacheValue)
{
return true;
}
-
+
const char *temp = this->Makefile->GetDefinition("HOSTNAME");
std::string hostname_cmd;
if(temp)
{
hostname_cmd = temp;
}
- else
+ else
{
hostname_cmd = cmSystemTools::FindProgram("hostname", paths);
}
-
+
std::string siteName = "unknown";
#if defined(_WIN32) && !defined(__CYGWIN__)
std::string host;
@@ -64,7 +64,7 @@ bool cmSiteNameCommand
std::string host;
cmSystemTools::RunSingleCommand(hostname_cmd.c_str(),
&host, 0, 0, cmSystemTools::OUTPUT_NONE);
-
+
// got the hostname
if (host.length())
{