Make BUILD_SHARED_LIBS default to ON. #326

This commit is contained in:
Frédéric Wang 2016-10-17 18:39:23 +02:00 committed by Frédéric Wang
parent d60aa23116
commit 288849e54f
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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