[petsc-users] How to use cmake to get external libraries?
Jed Brown
jed at jedbrown.org
Thu May 29 01:15:03 CDT 2014
Ce Qin <qince168 at gmail.com> writes:
> Dear all,
>
> I'n now using cmake to build my project. I had tried Jed's FindPETSc
> module, it works pretty fine. However, the variable PETSC_LIBRARIES it
> generates only have libpetsc.so. And I want to use the external libraries
> directly, so I need to get the whole libraries like PETSC_LIB in
> petscvariables. Can anyone provide some hints?
Best to have Find${OtherLibrary}.cmake for those libraries. It tangles
dependencies and will be harder to maintain in the long run if you
modify FindPETSc.cmake to provide access to optional third-party
libraries.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140529/50584e98/attachment.pgp>
More information about the petsc-users
mailing list