mirror of
https://github.com/google/brotli.git
synced 2025-01-14 18:30:24 +00:00
Merge pull request #454 from fred-wang/brotli-readme
Fix build instructions for cmake
This commit is contained in:
commit
74147a1a41
@ -33,14 +33,15 @@ See [Bazel](http://www.bazel.io/)
|
||||
|
||||
The basic commands to build, test and install brotli are:
|
||||
|
||||
$ mkdir out && cd out && cmake .. && make test
|
||||
$ mkdir out && cd out && cmake .. && make
|
||||
$ make test
|
||||
$ make install
|
||||
|
||||
You can use other [CMake](https://cmake.org/) configuration. For example, to
|
||||
build static libraries and use a custom installation directory:
|
||||
|
||||
$ mkdir out-shared && \
|
||||
cd out-shared && \
|
||||
$ mkdir out-static && \
|
||||
cd out-static && \
|
||||
cmake .. -DBUILD_SHARED_LIBS=0 -DCMAKE_INSTALL_PREFIX='/my/install/dir/'
|
||||
$ make install
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user