]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: cmake -DOFFLINE=TRUE for offline builds (#1341)
authorRafael Kitover <rkitover@gmail.com>
Sun, 29 Oct 2023 08:31:15 +0000 (08:31 +0000)
committerGitHub <noreply@github.com>
Sun, 29 Oct 2023 08:31:15 +0000 (09:31 +0100)
commit71c75d99c7ea3c78eeb2292522b66e3894c45733
treebbd38ca5413d4c4204dc91c0ef4d3d361a175297
parentd981073742a5645ae7e2e4eb19a39fa61dc1661e
feat: cmake -DOFFLINE=TRUE for offline builds (#1341)

Add the cmake option OFFLINE, defaulting to the value of the standard
variable FETCHCONTENT_FULLY_DISCONNECTED, which is OFF by default, to
disable downloading anything from the internet.

When ON, set FETCHCONTENT_FULLY_DISCONNECTED to ON, ZSTD_FROM_INTERNET
to OFF and HIREDIS_FROM_INTERNET to OFF.

When downloading is OFF and either library is not found, throw an error
using find_package_handle_standard_args().

Add the option to INSTALL.md doc.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
CMakeLists.txt
cmake/Findhiredis.cmake
cmake/Findzstd.cmake
doc/INSTALL.md