]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve instructions on how to install libzstd
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 13 Jul 2020 20:22:16 +0000 (22:22 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 13 Jul 2020 20:22:16 +0000 (22:22 +0200)
doc/INSTALL.md

index 033f0c77cba1aea6d5a680185f06ef1b512bfae1..9557dbbf2550d74107e074a22656a4134fe27b07 100644 (file)
@@ -10,10 +10,13 @@ To build ccache you need:
 - A C++11 compiler.
 - A C99 compiler.
 - [libzstd](https://www.zstd.net). If you don't have libzstd installed and
-  can't or don't want to install it on your system, you can pass
-  `-DZSTD_FROM_INTERNET=ON` to cmake to make it download libzstd from the
-  Internet and unpack it in the local binary tree. ccache will then be linked
-  statically to the locally built libzstd.
+  can't or don't want to install it in a standard system location, there are
+  two options:
+    1. Install zstd in a custom path and set `CMAKE_PREFIX_PATH` to it, e.g.
+       by passing `-DCMAKE_PREFIX_PATH=/some/custom/path` to `cmake`, or
+    2. Pass `-DZSTD_FROM_INTERNET=ON` to `cmake` to make it download libzstd
+       from the Internet and unpack it in the local binary tree. ccache will
+       then be linked statically to the locally built libzstd.
 
 Optional: