Avoid adding package lookup dependency if no target defined