cmMakefile: Port PolicyOptionalWarningEnabled to string APIs
This method was added in a commit based on a release branch that pre-dated the std::string API changes. Port the implementation to use the string APIs instead of c_str().
This commit is contained in:
parent
8018fcca6e
commit
13684e2b78
|
@ -4336,7 +4336,7 @@ bool cmMakefile::PolicyOptionalWarningEnabled(std::string const& var)
|
|||
// Check for an explicit CMAKE_POLICY_WARNING_CMP<NNNN> setting.
|
||||
if(!var.empty())
|
||||
{
|
||||
if(const char* val = this->GetDefinition(var.c_str()))
|
||||
if(const char* val = this->GetDefinition(var))
|
||||
{
|
||||
return cmSystemTools::IsOn(val);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue