<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: don't hardcode libdir"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103211">103211</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>cmake: don't hardcode libdir
</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>pochu27@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Hi,
Looking at poppler 0.60.1, I saw that it removes the autotools build system,
and it looks like the cmake build system hardcodes libdir to
${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
Unfortunately that's not good in all situations. E.g. in Debian we have
multiarch directories, so libraries go in /usr/lib/<triplet>/. I could do that
with autotools by setting --libdir (which our tooling does automatically) but I
can't do it anymore in the cmake build system.
I hear there's a GNUInstallDirs cmake thing that sets some stuff, e.g.
CMAKE_INSTALL_LIBDIR. Would it be possible to use that so that the libdir can
be controlled?
<a href="https://cmake.org/cmake/help/v3.3/module/GNUInstallDirs.html">https://cmake.org/cmake/help/v3.3/module/GNUInstallDirs.html</a></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>