mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
cmMakefile::AddCacheDefinition: Add overload that accepts std::string value
This commit is contained in:
@@ -128,14 +128,14 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
std::string const result = FindProgram();
|
||||
if (!result.empty()) {
|
||||
// Save the value in the cache
|
||||
this->Makefile->AddCacheDefinition(this->VariableName, result.c_str(),
|
||||
this->Makefile->AddCacheDefinition(this->VariableName, result,
|
||||
this->VariableDocumentation.c_str(),
|
||||
cmStateEnums::FILEPATH);
|
||||
|
||||
return true;
|
||||
}
|
||||
this->Makefile->AddCacheDefinition(
|
||||
this->VariableName, (this->VariableName + "-NOTFOUND").c_str(),
|
||||
this->VariableName, this->VariableName + "-NOTFOUND",
|
||||
this->VariableDocumentation.c_str(), cmStateEnums::FILEPATH);
|
||||
if (this->Required) {
|
||||
this->Makefile->IssueMessage(
|
||||
|
||||
Reference in New Issue
Block a user