<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:59 p.m., Kyle Edwards
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1570136386.3676.11.camel@kitware.com">
      <pre class="moz-quote-pre" wrap="">On Thu, 2019-10-03 at 16:42 -0400, stefan wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">My project is already using this style:
  set(CPACK_COMPONENTS_ALL runtime development mstool)

i.e. all components are already defined. All that's missing is the
declaration of their (inter-)dependencies.
Are you suggesting I should *not* use CPACK_COMPONENTS_ALL, but
instead call `cpack_add_component()` instead ?
Thanks,
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
That's how I prefer to do it. Alternatively, you could set
CPACK_COMPONENT_<compName>_DEPENDS directly (that's all that
cpack_add_component() is doing.)</pre>
    </blockquote>
    <p>Yes, that is exactly what I'm trying to do, but it doesn't seem
      to have any effect. That is, `dpkg --info ...` doesn't list the
      additional dependency, and correspondingly, running `apt-get
      install ...` on the component package file will install the
      package without first installing the prerequisite component.</p>
    <p>Consider this declaration:</p>
    <p>  set(CPACK_COMPONENTS_ALL runtime development mstool)</p>
    <p>If I now write<br>
    </p>
    <p>  set(CPACK_COMPONENT_DEVELOPMENT_DEPENDS runtime)<br>
    </p>
    <p>I will see no effect. That is, the "development" package still
      does not depend on the "runtime" package.<br>
    </p>
    <p>So I try this:<br>
    </p>
    <p>  set(CPACK_COMPONENT_DEVELOPMENT_DEPENDS RUNTIME)<br>
    </p>
    <p>in case capitalization is required. Now the "runtime" component
      seems to get packaged twice (as per the cmake logs), but still no
      correct dependencies.</p>
    <p>Is it time for a bug report ?</p>
    <div class="moz-signature">
      <div class="moz-signature"><img moz-do-not-send="false"
          src="cid:part1.926F3BF1.BA74F5A9@seefeld.name" alt="Stefan"
          width="73" height="45"><br>
        <pre>--

      ...ich hab' noch einen Koffer in Berlin...
    </pre>
      </div>
    </div>
  </body>
</html>