brotli/c
Adrian Perez 641bec0e30
CMake: Allow using BUILD_SHARED_LIBS to choose static/shared libs (#655)
By convention projects using CMake which can build either static or
shared libraries use a BUILD_SHARED_LIBS flag to allow selecting between
both: the add_library() command automatically switches between both using
this variable when the library kind is not passed to add_library(). It
is also usual to expose the BUILD_SHARED_LIBS as an user-facing setting
with the option() command.

This way, the following will both work as expected:

   % cmake -DBUILD_SHARED_LIBS=OFF ...
   % cmake -DBUILS_SHARED_LIBS=ON ...

This is helpful for distributions which need (or want) to build only
static libraries.
2022-12-16 11:42:42 +01:00
..
common Update 2022-11-17 13:03:09 +00:00
dec Update 2022-11-17 13:03:09 +00:00
enc Update 2022-11-17 13:03:09 +00:00
fuzz CMake: Allow using BUILD_SHARED_LIBS to choose static/shared libs (#655) 2022-12-16 11:42:42 +01:00
include/brotli Update 2022-11-17 13:03:09 +00:00
tools Update 2022-11-17 13:03:09 +00:00