[poppler] CMakeLists.txt

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Sep 6 17:42:45 UTC 2017


 CMakeLists.txt |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 118cd73a3c4eba78bbfed16cfc2996dec5491944
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Sep 6 19:42:26 2017 +0200

    cmake: Give people the option to build poppler as a static library

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f557bdaf..aedf1c0f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,6 +50,7 @@ option(ENABLE_ZLIB_UNCOMPRESS "Use zlib to uncompress flate streams (not totally
 option(SPLASH_CMYK "Include support for CMYK rasterization." OFF)
 option(USE_FIXEDPOINT "Use fixed point arithmetic in the Splash backend" OFF)
 option(USE_FLOAT "Use single precision arithmetic in the Splash backend" OFF)
+option(BUILD_SHARED_LIBS "Build poppler as a shared library" ON)
 if(WIN32)
   option(ENABLE_RELOCATABLE "Do not hardcode the poppler library location (on Windows)." ON)
 else()
@@ -549,7 +550,7 @@ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 set(CMAKE_CXX_FLAGS "/Zc:wchar_t- ${CMAKE_CXX_FLAGS}")
 add_library(poppler STATIC ${poppler_SRCS})
 else()
-add_library(poppler SHARED ${poppler_SRCS})
+add_library(poppler ${poppler_SRCS})
 endif()
 set_target_properties(poppler PROPERTIES VERSION 70.0.0 SOVERSION 70)
 target_link_libraries(poppler LINK_PRIVATE ${poppler_LIBS})


More information about the poppler mailing list