summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-11-02 17:37:43 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-11-02 17:37:43 +0000
commit8bd2ff33b87bae1db644b473a6e6055118cf7131 (patch)
treecd1b9853bde8a4c828294594e802a27ed3005a38
parentfix removing class when object to path (diff)
downloadinkscape-8bd2ff33b87bae1db644b473a6e6055118cf7131.tar.gz
inkscape-8bd2ff33b87bae1db644b473a6e6055118cf7131.zip
Make shared library building an option
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/CMakeLists.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b01956876..09519c8ac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,6 +95,7 @@ option(WITH_LPETOOL "Compile with LPE Tool and experimental LPEs enabled" ON)
option(WITH_OPENMP "Compile with OpenMP support" ON)
option(WITH_PROFILING "Turn on profiling" OFF) # Set to true if compiler/linker should enable profiling
+option(BUILD_SHARED_LIBS "Compile libraries as shared and not static" ON)
option(ENABLE_POPPLER "Compile with support of libpoppler" ON)
option(ENABLE_POPPLER_CAIRO "Compile with support of libpoppler-cairo for rendering PDF preview (depends on ENABLE_POPPLER)" ON)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 72d984845..4c56b211d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -540,7 +540,7 @@ set(INKSCAPE_TARGET_LIBS
)
# Build everything except main and inkview.c in a shared library.
-add_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})
+add_library(inkscape_base ${inkscape_SRC} ${sp_SRC})
if(WITH_DBUS)
add_dependencies(inkscape_base inkscape_dbus)