Browse Source

Merge topic 'issue-21557'

99a98eefac cmake_policy: Add check for return value of SetPolicyVersion

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5607
Brad King 5 years ago
parent
commit
7a0c28a760
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Source/cmCMakePolicyCommand.cxx

+ 1 - 2
Source/cmCMakePolicyCommand.cxx

@@ -191,8 +191,7 @@ bool HandleVersionMode(std::vector<std::string> const& args,
     return false;
   }
 
-  status.GetMakefile().SetPolicyVersion(version_min, version_max);
-  return true;
+  return status.GetMakefile().SetPolicyVersion(version_min, version_max);
 }
 
 bool HandleGetWarningMode(std::vector<std::string> const& args,