Fix: argument was not used.
This commit is contained in:
parent
b39f6afa45
commit
99c9d77f21
@ -48,8 +48,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
this->SetError("called with incorrect number of arguments");
|
this->SetError("called with incorrect number of arguments");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const char* cacheValue
|
const char* cacheValue = m_Makefile->GetDefinition(args[0].c_str());
|
||||||
= m_Makefile->GetDefinition("BUILDNAME");
|
|
||||||
if(cacheValue)
|
if(cacheValue)
|
||||||
{
|
{
|
||||||
// do we need to correct the value?
|
// 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,"(", "_");
|
cmSystemTools::ReplaceString(cv,"(", "_");
|
||||||
cmSystemTools::ReplaceString(cv,")", "_");
|
cmSystemTools::ReplaceString(cv,")", "_");
|
||||||
m_Makefile->AddCacheDefinition("BUILDNAME",
|
m_Makefile->AddCacheDefinition(args[0].c_str(),
|
||||||
cv.c_str(),
|
cv.c_str(),
|
||||||
"Name of build.",
|
"Name of build.",
|
||||||
cmCacheManager::STRING);
|
cmCacheManager::STRING);
|
||||||
@ -95,7 +94,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
cmSystemTools::ReplaceString(buildname,
|
cmSystemTools::ReplaceString(buildname,
|
||||||
")", "_");
|
")", "_");
|
||||||
|
|
||||||
m_Makefile->AddCacheDefinition("BUILDNAME",
|
m_Makefile->AddCacheDefinition(args[0].c_str(),
|
||||||
buildname.c_str(),
|
buildname.c_str(),
|
||||||
"Name of build.",
|
"Name of build.",
|
||||||
cmCacheManager::STRING);
|
cmCacheManager::STRING);
|
||||||
|
@ -49,7 +49,7 @@ bool cmSiteNameCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const char* cacheValue
|
const char* cacheValue
|
||||||
= m_Makefile->GetDefinition("SITE");
|
= m_Makefile->GetDefinition(args[0].c_str());
|
||||||
if(cacheValue)
|
if(cacheValue)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@ -102,7 +102,7 @@ bool cmSiteNameCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_Makefile->
|
m_Makefile->
|
||||||
AddCacheDefinition("SITE",
|
AddCacheDefinition(args[0].c_str(),
|
||||||
siteName.c_str(),
|
siteName.c_str(),
|
||||||
"Name of the computer/site where compile is being run",
|
"Name of the computer/site where compile is being run",
|
||||||
cmCacheManager::STRING);
|
cmCacheManager::STRING);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user