Skip to content

Releases: cpm-cmake/CPM.cmake

Prettify package lock

27 Jan 12:35
7000572
Compare
Choose a tag to compare

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

25 Jan 14:44
fe8d15b
Compare
Choose a tag to compare

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

20 Jan 12:18
ab6e8d6
Compare
Choose a tag to compare

We now bypass FetchContent for cached dependencies, resulting in a substantial performance improvement per added dependency.

Correctly infer version from GIT_TAG in CPMFindPackage

19 Oct 07:36
3b40429
Compare
Choose a tag to compare
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

27 Sep 20:57
aeef56e
Compare
Choose a tag to compare
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

20 Aug 07:41
c3c7e2d
Compare
Choose a tag to compare

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

20 Aug 07:27
Compare
Choose a tag to compare
Pre-release

This release is to test the functionality introduced by #146.

Fix indeterminate command for GitLab argument

04 Aug 10:25
ac872f6
Compare
Choose a tag to compare

Fixes use of the GITLAB_REPOSITORY argument. Relevant PR: #137.

First auto-versioned release

04 Aug 10:54
Compare
Choose a tag to compare
Pre-release

This release is to check that the auto-version feature of #139 works as intended.

Shallow fetch cached repositories

15 Jun 08:25
9ec279c
Compare
Choose a tag to compare

Cached dependencies are now fetched using --depth=1 by default, to minimise bandwidth and configure time. This does not apply when an explicit commit hash is provided.

See #129 and #130 for details and discussion.