Commit 267e0209 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmMakefile: Remove pointless condition

This method is never called with an empty string.
parent 009019f2
......@@ -3970,10 +3970,8 @@ cmPolicies::PolicyStatus cmMakefile::GetPolicyStatus(
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)) {
return cmSystemTools::IsOn(val);
}
if (const char* val = this->GetDefinition(var)) {
return cmSystemTools::IsOn(val);
}
// Enable optional policy warnings with --debug-output, --trace,
// or --trace-expand.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment