summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-18 16:38:05 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-18 16:38:05 (GMT)
commit99c9d77f213104cab263471a4e7c5e78ed5d2414 (patch)
tree1df5e3bf91d67eca856654ec844c7f1aa1d8c4a1 /Source
parentb39f6afa45fe58b74e39fbdb847b918d348fdc5c (diff)
downloadCMake-99c9d77f213104cab263471a4e7c5e78ed5d2414.zip
CMake-99c9d77f213104cab263471a4e7c5e78ed5d2414.tar.gz
CMake-99c9d77f213104cab263471a4e7c5e78ed5d2414.tar.bz2
Fix: argument was not used.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmBuildNameCommand.cxx7
-rw-r--r--Source/cmSiteNameCommand.cxx4
2 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx
index ca17210..637a10a 100644
--- a/Source/cmBuildNameCommand.cxx
+++ b/Source/cmBuildNameCommand.cxx
@@ -48,8 +48,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
this->SetError("called with incorrect number of arguments");
return false;
}
- const char* cacheValue
- = m_Makefile->GetDefinition("BUILDNAME");
+ const char* cacheValue = m_Makefile->GetDefinition(args[0].c_str());
if(cacheValue)
{
// do we need to correct the value?
@@ -60,7 +59,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
cmSystemTools::ReplaceString(cv,"/", "_");
cmSystemTools::ReplaceString(cv,"(", "_");
cmSystemTools::ReplaceString(cv,")", "_");
- m_Makefile->AddCacheDefinition("BUILDNAME",
+ m_Makefile->AddCacheDefinition(args[0].c_str(),
cv.c_str(),
"Name of build.",
cmCacheManager::STRING);
@@ -95,7 +94,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
cmSystemTools::ReplaceString(buildname,
")", "_");
- m_Makefile->AddCacheDefinition("BUILDNAME",
+ m_Makefile->AddCacheDefinition(args[0].c_str(),
buildname.c_str(),
"Name of build.",
cmCacheManager::STRING);
diff --git a/Source/cmSiteNameCommand.cxx b/Source/cmSiteNameCommand.cxx
index 657cb86..c4c59cd 100644
--- a/Source/cmSiteNameCommand.cxx
+++ b/Source/cmSiteNameCommand.cxx
@@ -49,7 +49,7 @@ bool cmSiteNameCommand::InitialPass(std::vector<std::string> const& args)
return false;
}
const char* cacheValue
- = m_Makefile->GetDefinition("SITE");
+ = m_Makefile->GetDefinition(args[0].c_str());
if(cacheValue)
{
return true;
@@ -102,7 +102,7 @@ bool cmSiteNameCommand::InitialPass(std::vector<std::string> const& args)
}
m_Makefile->
- AddCacheDefinition("SITE",
+ AddCacheDefinition(args[0].c_str(),
siteName.c_str(),
"Name of the computer/site where compile is being run",
cmCacheManager::STRING);