mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
cmMakefile: Remove pointless condition
This method is never called with an empty string.
This commit is contained in:
1 parent
009019f259
commit
267e02097e
1 file changed
+2
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user