<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>I'm trying to repackage an upstream project that's using CMake.
The project is set up to allow me to specify whether to build
shared or static libs using the BUILD_SHARED_LIBS when invoking
cmake. However, rather than generating two separate packages for
the two variants, I'd like to combine both into a single package.
The built artefacts themselves allow that, as the only difference
is that one variant produces *.so files and the other *.a.
Everything else (notably headers) should be identical. This means
I can join both into the same install prefix.</p>
<p>The difficulty arises with the generated cmake helper files that
define the targets for downstream projects, as both build variant
would generate the same target names, but one referring to the
shared libs, the other to the static libs.</p>
<p>Is there a way to rename one set of exported target names to
allow both to co-exist without having to install the build
variants into distinct install prefixes ?<br>
</p>
<p>Thanks,<br>
</p>
<div class="moz-signature">
<div class="moz-signature"><img moz-do-not-send="false"
src="cid:part1.AD33CFE4.8A9A49CC@seefeld.name" alt="Stefan"
width="73" height="45"><br>
<pre>--
...ich hab' noch einen Koffer in Berlin...
</pre>
</div>
</div>
</body>
</html>