[Trilinos-Users] tribits: libs and subpackages ?

Daniel Ibanez dan.a.ibanez at gmail.com
Thu Sep 17 10:35:11 EDT 2015


Okay, I looked for such configurations in Trilinos but
the closest I found were packages with a "Core" sub-package,
which I guess is the design you're suggesting.
We'll try to organize things that way, thanks.

On Thu, Sep 17, 2015 at 10:30 AM, Bartlett, Roscoe A. <bartlettra at ornl.gov>
wrote:

> Daniel,
>
>
>
> It is allowed for a parent package to have its own libs, executables,
> tests, etc. as well as subpackages.  There are several examples of TriBITS
> packages like this in Trilinos and other projects (just search for
> Dependencies.cmake files that have non-empty lists of libs and subpackages).
>
>
>
> But I would not recommend doing this because the enable/disable of the
> parent package is the same as the enable/disable of all the subpackages:
>
>
>
>
> https://tribits.org/doc/TribitsDevelopersGuide.html#enable-disable-of-parent-package-is-enable-disable-for-subpackages
>
>
>
> I would recommend that you create a new subpackage to put these
> libs/executables/tests into and then then you can turn that subpackages on
> and off independent of the other subpackages.
>
>
>
> Cheers,
>
>
>
> -Ross
>
>
>
>
>
> *From:* Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] *On
> Behalf Of *Daniel Ibanez
> *Sent:* Thursday, September 17, 2015 10:23 AM
> *To:* trilinos-users at trilinos.org
> *Subject:* [Trilinos-Users] tribits: libs and subpackages ?
>
>
>
> Hello,
>
>
>
> I have a package which declares a library, headers, and so on.
>
> Then I tried to add a sub-package to it, which made the
>
> library and headers "disappear" (omitted from packageConfig.cmake).
>
> Is it a known rule that a package must have either
>
> source code or sub-package but not both ?
>
>
>
> Thank you,
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150917/32774483/attachment.html>


More information about the Trilinos-Users mailing list