]> git.ipfire.org Git - thirdparty/ccache.git/commit
build: Improve handling of hiredis and zstd dependencies
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 25 Feb 2024 09:35:07 +0000 (10:35 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 27 Apr 2024 08:14:26 +0000 (10:14 +0200)
commitefeefe0759fc93399e2874146fe57a5b65c99765
treef70aa58714aff002fe66f4095f3f639837833b7c
parentb358bb2791711c864df930b7395e9e4344a122b8
build: Improve handling of hiredis and zstd dependencies

Introduced a new CMake variable called DEPS with the following
semantics:

- AUTO (the default): Use dependencies from the local system if
  available. Otherwise: Use bundled dependencies if available.
  Otherwise: Download dependencies from the internet (dependencies will
  then be linked statically).
- DOWNLOAD: Use bundled dependencies if available. Otherwise: Download
  recommended versions from the internet (dependencies will then be
  linked statically).
- LOCAL: Use dependencies from the local system if available. Otherwise:
  Use bundled dependencies if available.

The old {HIREDIS,ZSTD}_FROM_INTERNET and OFFLINE variables have been
removed in favor of DEPS.

Also streamlined the CMake code for hiredis and zstd.
15 files changed:
.clang-format
.github/workflows/build.yaml
CMakeLists.txt
ci/build-macos-binary
cmake/DefaultBuildType.cmake
cmake/Dependencies.cmake
cmake/FindHiredis.cmake [new file with mode: 0644]
cmake/FindZstd.cmake [new file with mode: 0644]
cmake/Findhiredis.cmake [deleted file]
cmake/Findzstd.cmake [deleted file]
cmake/Utils.cmake
doc/INSTALL.md
misc/test-all-systems
src/ccache/CMakeLists.txt
src/ccache/util/zstd.cpp