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

πŸ“¦ CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

Results 191 CPM.cmake issues
Sort by recently updated
recently updated
newest added

I have code like this: ```cmake if (CPM_SOURCE_CACHE) file(GLOB THIRD_PARTY_INCLUDES LIST_DIRECTORIES true "${CPM_SOURCE_CACHE}/**/include") include_directories("${CPM_SOURCE_CACHE}" ${THIRD_PARTY_INCLUDES}) endif() ``` Yes, this is a sort of a hack, but some third-party libraries can't...

cpm_fetch_package("${CPM_ARGS_NAME}" ${DOWNLOAD_ONLY} populated ${CPM_ARGS_UNPARSED_ARGUMENTS}) I didn't find the definition of "populated"

In CI environments, whenever my `CPMAddPackage` command has `PATCHES` set with multiple files, I get an error ``` /usr/bin/patch: '&&': extra operand /usr/bin/patch: Try '/usr/bin/patch --help' for more information. ```...

see https://github.com/ClausKlein/CPM.cmake/actions/runs/13551117797/job/37874696444

Fix compile errors and make the code more flexible. Use `packageProject` to install the example lib with its dependencies.

We are facing a scenario where we have private repos that not all users would have access to. Could CPM support a scenario where a dependency is declared, but not...

Is it possible to point to the directory that contains the CMakeLists.txt file?

Hello, I am attempting to migrate from version v0.40.2 to v0.40.5, but after the migration, I am encountering the following error: ``` Call Stack (most recent call first): build/_deps/openusd-src/CMakeLists.txt:23 (include)...

For some reason I can’t force find_package fallback here when doing CPM_USE_LOCAL_PACKAGE Any ideas? https://github.com/tenstorrent/tt-metal/actions/runs/13209960075/job/36882119965 ``` CPMAddPackage( NAME Boost VERSION 1.86.0 URL https://github.com/boostorg/boost/releases/download/boost-1.86.0/boost-1.86.0-cmake.tar.xz URL_HASH SHA256=2c5ec5edcdff47ff55e27ed9560b0a0b94b07bd07ed9928b476150e16b0efc57 OPTIONS "BOOST_ENABLE_CMAKE ON" "BOOST_SKIP_INSTALL_RULES ON"...

A behavior recently added in https://github.com/cpm-cmake/CPM.cmake/pull/604 attempts to emulate a FetchContent behavior for allowing `find_package` in CONFIG mode to be redirected to some CMake files. In this section added in...