From 288849e54f16f98ea9ace43a8c049d7fad24696e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Mon, 17 Oct 2016 18:39:23 +0200 Subject: [PATCH] Make BUILD_SHARED_LIBS default to ON. #326 --- CMakeLists.txt | 2 ++ README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94bc908..ba8aa17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/README.md b/README.md index 1e7225d..dce2866 100644 --- a/README.md +++ b/README.md @@ -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