[petsc-dev] PETSc 3.5.3 and CMake

Jed Brown jed at jedbrown.org
Fri Feb 6 09:49:00 CST 2015


gouarin <loic.gouarin at math.u-psud.fr> writes:

> # Determine whether the PETSc layout is old-style (through 2.3.3) or
> # new-style (>= 3.0.0)
> if (EXISTS "${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h")   # > 2.3.3
>    if (EXISTS "${PETSC_DIR}/conf/rules")
>      set (petsc_conf_rules "${PETSC_DIR}/conf/rules")
>      set (petsc_conf_variables "${PETSC_DIR}/conf/variables")
>    else()
>       set (petsc_conf_rules "${PETSC_DIR}/lib/petsc-conf/rules")
>       set (petsc_conf_variables "${PETSC_DIR}/lib/petsc-conf/variables")
>    endif()

Good, except that I would prefer to try the new location first.  I
pushed this to cmake-modules.

https://github.com/jedbrown/cmake-modules/commit/732ce5f04e840c933194786806d4a477a65ef620

Thanks for the report.
-------------- 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-dev/attachments/20150206/5f1ae26f/attachment.sig>


More information about the petsc-dev mailing list