From f004da8ef20cd3ef90157626866116a5901260f0 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 26 Sep 2011 11:03:52 +0000
Subject: [PATCH] fix slepc search

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e36278ff35..bdf948abd8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -684,8 +684,8 @@ if(ENABLE_SLEPC AND HAVE_PETSC)
   set(ENV_SLEPC_DIR $ENV{SLEPC_DIR})
   find_library(SLEPC_LIB slepc PATHS ${ENV_SLEPC_DIR}/${ENV_PETSC_ARCH}/lib)
   if(SLEPC_LIB)
-    find_path(SLPEC_INC "slepc.h" PATHS ${ENV_SLEPC_DIR}/${ENV_SLEPC_ARCH} 
-              PATH_SUFFIXES include include/slepc)
+    find_path(SLEPC_INC "slepc.h" PATHS ${ENV_SLEPC_DIR} PATH_SUFFIXES include 
+              ${ENV_PETSC_ARCH}/include include/slepc)
     if(SLEPC_INC)
       set_config_option(HAVE_SLEPC "SLEPc")
       list(APPEND EXTERNAL_LIBRARIES ${SLEPC_LIB})
-- 
GitLab