]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Configure: allow discovery of SLEPc when PETSc has been configure with --download... 14715/head
authorStefano Zampini <stefano.zampini@gmail.com>
Mon, 23 Jan 2023 14:58:53 +0000 (17:58 +0300)
committerStefano Zampini <stefano.zampini@gmail.com>
Tue, 24 Jan 2023 07:11:22 +0000 (10:11 +0300)
cmake/modules/FindDEAL_II_SLEPC.cmake

index 6e30ed482b2ff3525c9f1f85369d1ad4eee5dfd8..6f798b4af941ed66523351b356045e2998be07ca 100644 (file)
@@ -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
 )
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.