update check for whether a target is a cmake target