CPM.cmake
CPM.cmake copied to clipboard
📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.
I'm trying to add an internal repository using the ssh protocol: I know it will work if write ```cmake CPMAddPackage( GIT_REPOSITORY "[email protected]:xxxxxx/yyyyyy.git" GIT_TAG master ) ``` I think it would...
Hi, I notice that for some repos I get the following warning when using CPM. (doesn't happen when using fetchcontent) Would anyone notice what's happening? ``` CMake Warning at C:/Users/daego/Desktop/Projects/Light.vn-core/_deps/magnum/88cbd2f51eb19313126eee0f666a5c951718675c/src/Magnum/CMakeLists.txt:68...
Hope I didn't miss anything in the docs, code nor other issues. I very recently started using CPM and it worked great without any troubles installing. The only slight hiccup...
Do I understand correctly, that once sources are downloaded do the cache directory, cpm would never delete them? Suppose I want to use a CPM cache directory on a jenkins...
Hello, As the title says, while working with multiple branches and multiple addition to the project, what I am seeing is that the package-lock.cmake content is updated (I think) with...
I'm using ``` CPMAddPackage(json GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git GIT_TAG v3.9.1 SYSTEM ) ``` and get the following error: ``` -- CPM: Adding package [email protected] (v3.9.1) ninja: error: Stat(C:/Users/daego/Desktop/Projects/Light.vn-core/core/out/build/emscripten/_deps/nlohmann_json_cmake_fetchcontent-subbuild/nlohmann_json_cmake_fetchcontent-populate-prefix/src/nlohmann_json_cmake_fetchcontent-populate-stamp/nlohmann_json_cmake_fetchcontent-populate-done): Filename longer than 260...
Hey there, ATM I am doing this, to use a local folder for my dependency if it is present (used for source-distribution of our package since users want to be...
``` cmake_minimum_required(VERSION 3.14...3.22) project(onqlave-cpp LANGUAGES CXX) # --- Import tools ---- include(../cmake/tools.cmake) # ---- Dependencies ---- include(../cmake/CPM.cmake) CPMAddPackage( NAME libsodium VERSION 1.0.18 URL https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18.tar.gz ) if(libsodium_ADDED) add_library(libsodium INTERFACE IMPORTED) target_include_directories(libsodium...
When using the latest version of CPM.cmake (0.37.0) and configuring the cmake with flags `--warn-unused-vars` and `--warn-uninitialized` I get warnings: ``` CMake Warning (dev) at cmake-build-debug-armv6/cmake/cpm/CPM.cmake:105 (option): uninitialized variable 'CPM_USE_LOCAL_PACKAGES'...
https://cmake.org/cmake/help/latest/command/cmake_language.html#dependency-providers This relates to existing topics: - https://github.com/cpm-cmake/CPM.cmake/issues/404 - https://github.com/cpm-cmake/CPM.cmake/issues/414 The general workflow would in 'theory' require that `Declare` must be done by the user: ``` CPMDeclarePackage( Foo ... )...