Releases: cpm-cmake/CPM.cmake
Allow overriding FetchContent using CPM
What's Changed
- Add liblava to "Built with CPM.cmake" by @TheLavaBlock in #346
- Allow overriding FetchContent using CPM by @TheLartians in #352
New Contributors
- @TheLavaBlock made their first contribution in #346
Full Changelog: v0.35.0...v0.35.1
Per package CPM_DOWNLOAD controls and consistent option behaviour
What's Changed
- Fix comment out-of-sync with modified code by @danra in #321
- Unified GitHub workflow for tests on major operating systems by @iboB in #326
- [Example] Disable JSON tests being included in ctest by @Vinpasso in #329
- Remove badges from readme by @TheLartians in #327
- Initial version of integration tests by @iboB in #330
- Allows set/set(CACHE) to behave the same as set(X)/option(x) by @robertmaynard in #335
- Use CMake 3.14+ documented way to pass the source dir
-S
. by @robertmaynard in #337 - Fix beginner’s trap / fix broken example for nlohmann/json by @Tobi823 in #338
- List of contributors by @iboB in #340
- Some typo fixes. by @bilke in #341
- Add per package CPM_DOWNLOAD controls by @robertmaynard in #336
New Contributors
- @danra made their first contribution in #321
- @Vinpasso made their first contribution in #329
- @robertmaynard made their first contribution in #335
- @Tobi823 made their first contribution in #338
- @bilke made their first contribution in #341
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
Respect DOWNLOAD_ONLY flag when CPM_<Package>_SOURCE is set
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
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
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
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
- 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
- Projects hosted on Bitbucket can now be added through the named argument
BITBUCKET_REPOSITORY
or using thebb:
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
Fixes an issue where a user-set FETCHCONTENT_BASE_DIR
would be ignored when adding a cached dependency.
Thanks to @trxcllnt for the fix!