Releases: cpm-cmake/CPM.cmake
Prettify package lock
The package lock output is now prettified.
Before
# cxxopts
CPMDeclarePackage(cxxopts "NAME;cxxopts;VERSION;2.2.0;GITHUB_REPOSITORY;jarro2783/cxxopts;OPTIONS;CXXOPTS_BUILD_EXAMPLES Off;CXXOPTS_BUILD_TESTS Off")
After
# cxxopts
CPMDeclarePackage(cxxopts
NAME cxxopts
VERSION 2.2.0
GITHUB_REPOSITORY jarro2783/cxxopts
OPTIONS
"CXXOPTS_BUILD_EXAMPLES Off"
"CXXOPTS_BUILD_TESTS Off"
)
Thanks to @alexandreSalconiDenis for the suggestion and PR!
Expand CPM_SOURCE_CACHE path provided as a configure argument
Now supports non-absolute paths for CPM_SOURCE_CACHE
passed through configuration arguments, e.g. -DCPM_SOURCE_CACHE=~/some/path
.
See #186 for details.
Removed FetchContent overhead for cached packages
We now bypass FetchContent for cached dependencies, resulting in a substantial performance improvement per added dependency.
Correctly infer version from GIT_TAG in CPMFindPackage
fix: GIT_TAG not parsed inside CPMFindPackage (#159) When using CPMFindPackage, if no VERSION is given then GIT_TAG is used as fallback if defined, which is a good idea. The issue is that GIT_TAG is missing inside the oneValueArgs variable therefore GIT_TAG is not parsed. This is resolved by this little change.
Fix passing options when local source override
fix passing options when using CPM_<pkg>_SOURCE (#155) When I used CPM_<pkg>_SOURCE to point to a locally modified copy, the options ended up not being passed on. I think they should be, so this patch does so.
Add get_cpm.cmake
This is the official release of the get_cpm.cmake
script, which will be the recommended way to get CPM.cmake. This will reduce the code impact of adding CPM.cmake and allow minimise the amount of third-party code in C++ projects. Thanks to @tueda for the suggestion of caching the download itself (#145).
Add on-demand download script
This release is to test the functionality introduced by #146.
Fix indeterminate command for GitLab argument
Fixes use of the GITLAB_REPOSITORY
argument. Relevant PR: #137.
First auto-versioned release
This release is to check that the auto-version feature of #139 works as intended.