Bug#868894: find_package option COMPONENTS ineffective because of hard-coded includes in TrilinosConfig.cmake

Joachim Wuttke j.wuttke at fz-juelich.de
Wed Jul 19 14:34:07 UTC 2017


Package: trilinos-dev
Version: 12.10.1-3

CMake's find_package takes an option COMPONENTS.
Usage with Trilinos seems to be documented nowhere,
but TrilinosConfig.cmake clearly is intended to
support e.g.
find_package(Trilinos REQUIRED COMPONENTS Epetra Belos Ifpack)

However, at the bottom of TrilinosConfig.cmake there
is a long list that includes all Trilinos subproject
CMake files. This overwrites the component selection,
and makes it ineffective: the client application will
depend on _all_ of Trilinois, not just on the selected
components.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5110 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20170719/e6c20889/attachment-0001.bin>


More information about the debian-science-maintainers mailing list