mirror of
https://github.com/google/brotli.git
synced 2024-11-22 03:30:07 +00:00
Make BUILD_SHARED_LIBS default to ON. #326
This commit is contained in:
parent
d60aa23116
commit
288849e54f
@ -6,6 +6,8 @@ cmake_minimum_required(VERSION 2.8.6)
|
||||
|
||||
project(brotli)
|
||||
|
||||
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||
|
||||
# If Brotli is being bundled in another project, we don't want to
|
||||
# install anything. However, we want to let people override this, so
|
||||
# we'll use the BROTLI_BUNDLED_MODE variable to let them do that; just
|
||||
|
@ -37,11 +37,11 @@ The basic commands to build, test and install brotli are:
|
||||
$ make install
|
||||
|
||||
You can use other [CMake](https://cmake.org/) configuration. For example, to
|
||||
build shared libraries and use a custom installation directory:
|
||||
build static libraries and use a custom installation directory:
|
||||
|
||||
$ mkdir out-shared && \
|
||||
cd out-shared && \
|
||||
cmake .. -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX='/my/install/dir/'
|
||||
cmake .. -DBUILD_SHARED_LIBS=0 -DCMAKE_INSTALL_PREFIX='/my/install/dir/'
|
||||
$ make install
|
||||
|
||||
#### Premake5
|
||||
|
Loading…
Reference in New Issue
Block a user