The CPA is a state license. BLS says becoming a CPA requires passing a national exam and meeting state requirements, traditionally including 150 semester hours of college coursework; NASBA notes that a growing number of states have added a route of a bachelor's in accounting plus two years of experience. It is required for public accounting work that involves SEC filings, and it applies across audit, tax and corporate accounting, not only cost work.
The CMA (Certified Management Accountant) is issued by the Institute of Management Accountants (IMA). It is built around the planning, costing and analysis work cost accountants do, and it does not require a state license.
BLS does not publish pay by credential. For someone who plans to stay in industry, moving toward plant controller or FP&A, the CMA lines up with the work. For someone who may want public accounting or a corporate controller role later, the CPA keeps more doors open.