]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Augment search for SLEPC
authorMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 6 Nov 2012 10:42:58 +0000 (10:42 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 6 Nov 2012 10:42:58 +0000 (10:42 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27421 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindSLEPC.cmake

index b9c35f8e268b808bea5740336951f2f5d9e64269..fb4d5a9bfba44e358ed7b360a748e3ed32f0b356 100644 (file)
@@ -32,6 +32,7 @@ INCLUDE(FindPackageHandleStandardArgs)
 SET_IF_EMPTY(SLEPC_DIR "$ENV{SLEPC_DIR}")
 SET_IF_EMPTY(SLEPC_ARCH "$ENV{SLEPC_ARCH}")
 SET_IF_EMPTY(PETSC_DIR "$ENV{PETSC_DIR}")
+SET_IF_EMPTY(PETSC_ARCH "$ENV{PETSC_ARCH}")
 
 #
 # Luckily, SLEPc wants the same insanity as PETSc, so we can just copy the
@@ -44,6 +45,7 @@ FIND_LIBRARY(SLEPC_LIBRARIES
     # SLEPC is special. Account for that
     ${SLEPC_DIR}
     ${SLEPC_DIR}/${SLEPC_ARCH}
+    ${SLEPC_DIR}/${PETSC_ARCH}
     ${PETSC_DIR}
   PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
 )
@@ -62,6 +64,7 @@ FIND_PATH(SLEPC_INCLUDE_DIR_ARCH slepcconf.h
     # SLEPC is special. Account for that
     ${SLEPC_DIR}
     ${SLEPC_DIR}/${SLEPC_ARCH}
+    ${SLEPC_DIR}/${PETSC_ARCH}
     ${SLEPC_INCLUDE_DIRS}
     ${PETSC_DIR}
   PATH_SUFFIXES slepc include include/slepc
@@ -84,6 +87,7 @@ FIND_PATH(SLEPC_INCLUDE_DIR_COMMON slepcversion.h
   HINTS
     ${SLEPC_DIR}
     ${SLEPC_DIR}/${SLEPC_ARCH}
+    ${SLEPC_DIR}/${PETSC_ARCH}
     ${SLEPC_INCLUDE_DIRS}
     ${PETSC_DIR}
   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.