Seems the easiest thing is to use exiftool -geotag "*.gpx" *CR2 Problem solved.
exiftool -geotag "*.gpx" *CR2