[Poppler-bugs] [Bug 103765] New: CMake: glib backend won't build as a static library

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 15 16:58:01 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103765

            Bug ID: 103765
           Summary: CMake: glib backend won't build as a static library
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: phillip.berndt at googlemail.com

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.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171115/de904bc7/attachment.html>


More information about the Poppler-bugs mailing list