mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
status.GetMakefile().SetPolicyVersion(version_min, version_max);
|
return status.GetMakefile().SetPolicyVersion(version_min, version_max);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HandleGetWarningMode(std::vector<std::string> const& args,
|
bool HandleGetWarningMode(std::vector<std::string> const& args,
|
||||||
|
Reference in New Issue
Block a user