diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-07-24 19:08:15 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-07-24 19:08:15 +0100 |
commit | 348d48fec431a45777e8c7b5014990be426bd565 (patch) | |
tree | a60b6fbc88f7198f89360e8234f21b75b8eb57ce | |
parent | 0eb070e437ae2ac0e25e4795d20df145d7bbfbee (diff) | |
download | raptor-348d48fec431a45777e8c7b5014990be426bd565.tar.gz |
CMakeLists.txt: default to shared libraries by default
raptor2 provides a library and depends on a few other libraries
on it's own (like libxml2).
Some downstream projects are not very careful to include all
the needed libraries from .pc files and use just raptor2 one.
This sometimes causes linkage failures like `guitarix`:
https://hydra.nixos.org/log/4hznma7pl7wvjdhm3x2lr84zpj07s2ax-guitarix-0.42.1.drv
In this case linkage failure happens via underlinked `liblrdf.so`.
While it's a bug in `liblrdf.so` I think it would be reasonable
to enable shared libraries by default for use in distributions as is.
This change enables shared library bu default.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index abe02d76..8f9bcb5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,7 +170,7 @@ ENDIF(LIBXML2_FOUND) # (Note: The CMake GUI displays these in alphabetical order, regardless of # the order we use here) -SET(BUILD_SHARED_LIBS OFF CACHE BOOL +SET(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries instead of static ones.") IF(BUILD_SHARED_LIBS) |