Skip to content

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

@kelbon

Description

@kelbon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions