Commodore sold a version of CP/M (2.2) with a Z-80 processor in a cartridge for the C-64. Due to slow 1541 disk drive speed, non-CP/M disk format, and a 40-column display, it was a slow and clumsy version of CP/M.
As someone else posted, the C-128 and 1571 disk drive had much better CP/M support. The 128 had a built-in Z-80 and 80-column capability. The 1571 could read/write CP/M format (and MS-DOS format for that matter) disks.