<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CMake: glib backend won't build as a static library"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103765">103765</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CMake: glib backend won't build as a static library
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>phillip.berndt@googlemail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>