mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-13 17:47:49 +08:00
cmake_policy: Add check for return value of SetPolicyVersion
Fixes: #21557
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user