summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-07-24 19:08:15 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-07-24 19:08:15 +0100
commit348d48fec431a45777e8c7b5014990be426bd565 (patch)
treea60b6fbc88f7198f89360e8234f21b75b8eb57ce
parent0eb070e437ae2ac0e25e4795d20df145d7bbfbee (diff)
downloadraptor-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.txt2
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)