CPM.cmake icon indicating copy to clipboard operation
CPM.cmake copied to clipboard

Proposal: Include CPM.cmake as a built-in CMake module

Open kelbon opened this issue 7 months ago • 0 comments

I'd like to propose that CMake officially includes CPM as a built-in module, similar to how FetchContent is included. This would allow users to simply write include(CPM) in their CMake projects without needing to:

  • Modify their project's code to bootstrap CPM (currently requires adding a download script or vendoring the file)

  • Trust and wait for an external download during the build process (removes the get_cpm.cmake step)

Benefits:

Simple for users - just include(CPM)

Improved trust - no need to download third-party code during builds

Its easy - just one file (CPM.cmake)

Have you discussed this with the CMake maintainers?

kelbon avatar Jun 13 '25 09:06 kelbon