[Trilinos-Users] tribits: libs and subpackages ?

Bartlett, Roscoe A. bartlettra at ornl.gov
Thu Sep 17 10:30:12 EDT 2015


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/772335d9/attachment-0001.html>


More information about the Trilinos-Users mailing list