cpm-cmake/CPM.cmake
View on GitHub ↗ ★ 4,158 CMake
📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.
6 mentions on Hacker News by 4 people: 1 story, 5 comments · first 2022-03-08 · latest 2025-05-10
20082026
-
…to build basic sources/libraries/executables. And you can either use CMake FetchContent or use CPM https://github.com/cpm-cmake/CPM.cmake to fetch dependencies. No third-party tool like vcpkg or conan is needed.
comment by lenkite · 2025-05-10 · in Rust’s dependencies are starting to worry me -
Have you taken a look at CPM ? https://github.com/cpm-cmake/CPM.cmake . It makes CMake project management easy - no need for separate package manager tool.
comment by lenkite · 2024-11-25 · in The two factions of C++ -
There's also https://github.com/cpm-cmake/CPM.cmake which is mostly a wrapper around FetchContent with good caching. I used vcpkg for https://github.com/zig-for/snfm - it made builds easy, but I'm on the fence if I'd use it for anything…
comment by a_t48 · 2024-05-05 · in Xmake: A cross-platform build utility based on Lua -
…but things are getting better. I use CPM for a couple of years now and get the experience desired https://github.com/cpm-cmake/CPM.cmake
comment by jahnu · 2023-08-15 · in My (Herb Sutter's) C++ Now 2023 talk is online: “A TypeScript for C++” -
If a project supports cmake, this is the best package manager to fetch it https://github.com/cpm-cmake/CPM.cmake
comment by guavaNinja · 2022-03-08 · in C Package Manager