Bug 103765 - CMake: glib backend won't build as a static library
Summary: CMake: glib backend won't build as a static library
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 16:58 UTC by Phillip Berndt
Modified: 2018-08-20 22:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Phillip Berndt 2017-11-15 16:58:01 UTC
When compiling with -DBUILD_SHARED_LIBS=OFF the glib backend will still build as a shared library. This is because 

 add_library(poppler-glib SHARED ${poppler_glib_SRCS} ${poppler_glib_generated_SRCS})

is hardcoded and there is no corresponding line defining an associated static library.

Adding a second, STATIC library and associated install() directive manually gives me a working static version of the glib interface. Removing SHARED doesn't suffice as dependencies aren't resolved correctly by parts of the CMakeLists that depend on the library.

(Other interfaces might be affected as well, I haven't checked.)
Comment 1 GitLab Migration User 2018-08-20 22:06:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/201.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.