Skip to content

Releases: cpm-cmake/CPM.cmake

Allow overriding FetchContent using CPM

16 May 19:30
a575ab5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.35.0...v0.35.1

Per package CPM_DOWNLOAD controls and consistent option behaviour

11 Feb 18:51
005f202
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.34.3...v0.35.0

Thanks to everyone who contributed for these updates!

Fix issue with whitespaces in paths and dependency directory handling when caching is active

30 Dec 15:27
939123d
Compare
Choose a tag to compare
  • Fixes an issue where whitespaces in paths lead to errors in the generated CMake modules (#312)
  • Fixes an issue where <dependency>_SOURCE_DIR and <dependency>_BINARY_DIR wasn't defined properly for cached dependencies (#314)

Thanks to @DNKpp for the issue and fixes!

Respect DOWNLOAD_ONLY flag when CPM_<Package>_SOURCE is set

15 Dec 20:25
96c2688
Compare
Choose a tag to compare

Fixes an issue where the DOWNLOAD_ONLY flag is lost in combination with an overriding CPM_<Package>_SOURCE flag.
Thanks to @hacker-cb for the fix!

Fix issue that prevented passing lists as package arguments

05 Dec 15:12
fed5f8e
Compare
Choose a tag to compare

Fixed a problem that made passing lists as arguments impossible. Note that due to the way CMake handles parsing function arguments, separator semicolons of list arguments need to be quadruple escaped (\\\\;). See #302 for details.

CPM_USE_NAMED_CACHE_DIRECTORIES

15 Sep 19:42
634800c
Compare
Choose a tag to compare

Adds an option to add an additional directory layer to the cache, allowing some IDEs to display the proper dependency name. See #266 for details. Thanks @pgorgon-hem for the feature!

Detect when a cache directory has been modified

15 Sep 09:44
f552da9
Compare
Choose a tag to compare

CPM.cmake now emits a warning when a dependencies source directory has been modified (git dependencies only). See #274 for details.
Thanks @apGribble and @andijcr for the suggestion and implementation!

Spaces in paths and FetchContent interoperability

29 Aug 20:10
ea6a8eb
Compare
Choose a tag to compare
  • Fixes an issue (#285) when spaces are used in the CPM.cmake path.
  • Fixes an issue (#287) when using "naked" FetchContent together with CPM.cmake.

Thanks to @MixusMinimax and @OlivierLDff for finding and fixing the issues!

Bitbucket support and relative paths

08 Jun 17:18
91585e3
Compare
Choose a tag to compare
  • Projects hosted on Bitbucket can now be added through the named argument BITBUCKET_REPOSITORY or using the bb: prefix in the single-argument syntax. Thanks @pgorgon-hem for the PR!
  • Using a relative path for CMAKE_SOURCE_CACHE will now work thanks to a fix by @studoot!

Respect FETCHCONTENT_BASE_DIR if set by a user

16 Apr 15:31
7644c3a
Compare
Choose a tag to compare

Fixes an issue where a user-set FETCHCONTENT_BASE_DIR would be ignored when adding a cached dependency.

Thanks to @trxcllnt for the fix!