CMake's missing package manager. CPM.cmake has 5 repositories available. Follow their code on GitHub.
To add CPM to your current project, simply add thelatest releaseofCPM.cmakeorget_cpm.cmaketo your project'scmakedirectory. The command below will perform this automatically. mkdir -p cmake wget -O cmake/CPM.cmake https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/get_cpm....
📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management. - More Snippets · cpm-cmake/CPM.cmake Wiki
CPM in CMake scripts: define_property command is not scriptable #541 openedFeb 29, 2024bygerhardol GIT_SHALLOW still downloads the whole repo #540 openedFeb 28, 2024byLeafmun-certii 1 add_library() isn't aware of h-file location like add_executable() ...
📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management. - Release v0.40.8 · cpm-cmake/CPM.cmake
set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake") endif() # Expand relative path. This is important if the provided path contains a tilde (~) get_filename_component(CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE) file(DOWNLOAD https://git...
20 + CPM.cmake 21 + VERSION "${EXTRACTED_CPM_VERSION}" 22 + DESCRIPTION 23 + "CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management." 24 + HOMEPAGE_URL "https://github.com/cpm-cmake/CPM.cmake" 25 + LANGUAGES ...
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
I would like to use CPM in enterprise development. For this purpose, it would be convenient if, in addition to CPM_SOURCE_CACHE, there was an option to define a folder to which artifacts are downloaded (initial, i.e. there is a zip archi...
2 changes: 1 addition & 1 deletion 2 cmake/CPM.cmake Original file line numberDiff line numberDiff line change @@ -280,7 +280,7 @@ function(cpm_create_module_file Name) "include(\"${CMAKE_CURRENT_LIST_DIR}/${NameLower}-extra.cmake\" OPTIONAL)\n" "include(\"${CMAKE_CURRENT_...