From: Stefano Zampini Date: Mon, 23 Jan 2023 14:58:53 +0000 (+0300) Subject: Configure: allow discovery of SLEPc when PETSc has been configure with --download... X-Git-Tag: v9.5.0-rc1~619^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b717f67e0c7c70035613c1f087c1a0ed53fbaaf;p=dealii.git Configure: allow discovery of SLEPc when PETSc has been configure with --download-slepc --- diff --git a/cmake/modules/FindDEAL_II_SLEPC.cmake b/cmake/modules/FindDEAL_II_SLEPC.cmake index 6e30ed482b..6f798b4af9 100644 --- a/cmake/modules/FindDEAL_II_SLEPC.cmake +++ b/cmake/modules/FindDEAL_II_SLEPC.cmake @@ -40,7 +40,7 @@ set_if_empty(PETSC_ARCH "$ENV{PETSC_ARCH}") deal_ii_find_library(SLEPC_LIBRARY NAMES slepc libslepc - HINTS ${SLEPC_DIR} ${SLEPC_DIR}/${PETSC_ARCH} ${PETSC_DIR} + HINTS ${SLEPC_DIR} ${SLEPC_DIR}/${PETSC_ARCH} ${PETSC_DIR} ${PETSC_DIR}/${PETSC_ARCH} PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib ) @@ -50,6 +50,7 @@ deal_ii_find_path(SLEPC_INCLUDE_DIR_ARCH slepcconf.h ${SLEPC_DIR}/${PETSC_ARCH} ${SLEPC_INCLUDE_DIRS} ${PETSC_DIR} + ${PETSC_DIR}/${PETSC_ARCH} PATH_SUFFIXES slepc include include/slepc ) @@ -59,6 +60,7 @@ deal_ii_find_path(SLEPC_INCLUDE_DIR_COMMON slepcversion.h ${SLEPC_DIR}/${PETSC_ARCH} ${SLEPC_INCLUDE_DIRS} ${PETSC_DIR} + ${PETSC_DIR}/${PETSC_ARCH} PATH_SUFFIXES slepc include include/slepc )