CPM.cmake
CPM.cmake copied to clipboard
Proposal: Include CPM.cmake as a built-in CMake module
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?