[petsc-users] Petsc and cmake
Jed Brown
jed at jedbrown.org
Sat Jun 20 15:11:42 CDT 2015
Michele Rosso <mrosso at uci.edu> writes:
> Hi,
>
> I am trying to move to cmake to build my code. How would you suggest to
> handle the dependency on PETSc?
> Currently my makefile relies on the PETSc variables for building the all
> code, namely FLINKER, CLINKER and so on. I found the FindPETSc.cmake
> module and I successfully used it
> but it does not import the aforementioned variables.
CMake insists on setting the compiler before discovering dependent
packages. FindPETSc.cmake sets PETSC_COMPILER, but you can't set the
compiler based on this information; you can only check and decide
whether to error. That's life with CMake.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150620/5747a13a/attachment.pgp>
More information about the petsc-users
mailing list