<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<div class="moz-cite-prefix">On 2019-10-03 4:37 p.m., Kyle Edwards
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1570135030.3676.10.camel@kitware.com">
<pre class="moz-quote-pre" wrap="">On Thu, 2019-10-03 at 16:30 -0400, stefan wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi Kyle,
thanks for the quick followup.
On 2019-10-03 4:23 p.m., Kyle Edwards wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Please take a look at cpack_add_component():
<a class="moz-txt-link-freetext" href="https://cmake.org/cmake/help/latest/module/CPackComponent.html">https://cmake.org/cmake/help/latest/module/CPackComponent.html</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">I'm not sure what specifically I should be looking for.
In general my setup is working fine, i.e. my build generates multiple
packages as expected. They even contain dependencies to external
packages, as I have set as per the available variables. What I
haven't been able to express is the component inter-dependency. That
is, I haven't found a way to make my "development" package depend on
the "runtime" package (generated from the same build process).
Sorry for being obtuse.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
In particular, please look at the DEPENDS argument of
cpack_add_component():
"DEPENDS lists the components on which this component depends. If this
component is selected, then each of the components listed must also be
selected. The dependency information is encoded within the installer
itself, so that users cannot install inconsistent sets of components."</pre>
</blockquote>
<p>My project is already using this style:<br>
</p>
<p> set(CPACK_COMPONENTS_ALL runtime development mstool)<br>
<br>
</p>
<p>i.e. all components are already defined. All that's missing is
the declaration of their (inter-)dependencies.</p>
<p>Are you suggesting I should *not* use CPACK_COMPONENTS_ALL, but
instead call `cpack_add_component()` instead ?<br>
</p>
<p>Thanks,<br>
</p>
<p><br>
</p>
<div class="moz-signature">
<div class="moz-signature"><img moz-do-not-send="false"
src="cid:part1.703EF784.BEB727B8@seefeld.name" alt="Stefan"
width="73" height="45"><br>
<pre>--
...ich hab' noch einen Koffer in Berlin...
</pre>
</div>
</div>
</body>
</html>