Can't you depend on the package? This dependency on the target is not really nice (as in the example of suitesparse we might update the target name)