Merge topic 'remove_unneeded_variables_from_cmFindPackageCommand'

96b10e47be Remove unused variables from cmFindPackageCommand

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3488
This commit is contained in:
Brad King 2019-07-01 13:59:41 +00:00 committed by Kitware Robot
commit fccc59c38c

View File

@ -732,12 +732,6 @@ bool cmFindPackageCommand::HandlePackageMode(
{
this->ConsideredConfigs.clear();
// Support old capitalization behavior.
std::string upperDir = cmSystemTools::UpperCase(this->Name);
std::string upperFound = cmSystemTools::UpperCase(this->Name);
upperDir += "_DIR";
upperFound += "_FOUND";
// Try to find the config file.
const char* def = this->Makefile->GetDefinition(this->Variable);