mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 01:01:12 +00:00
Merge topic 'fix-target-alias-in-subdir'
0e44f489Rename local target lookup methods to clarify purposebc30f8b5Fix lookup of an ALIAS target outside aliased target's directory (#16044)
This commit is contained in:
@@ -388,7 +388,7 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
||||
return false;
|
||||
}
|
||||
// Lookup this target in the current directory.
|
||||
if(cmTarget* target=this->Makefile->FindTarget(*targetIt))
|
||||
if(cmTarget* target=this->Makefile->FindLocalNonAliasTarget(*targetIt))
|
||||
{
|
||||
// Found the target. Check its type.
|
||||
if(target->GetType() != cmState::EXECUTABLE &&
|
||||
|
||||
Reference in New Issue
Block a user