From 6f5abb56eef6d268966ccef56d034ca46623a418 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 24 Feb 2012 11:17:54 +0000
Subject: [PATCH] tentative fix for slepc 3.2

---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d3cdaf8ab..7c1e9f9639 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -703,6 +703,11 @@ if(ENABLE_PETSC)
           set_config_option(HAVE_SLEPC "SLEPc")
           list(APPEND EXTERNAL_LIBRARIES ${SLEPC_LIB})
           list(APPEND EXTERNAL_INCLUDES ${SLEPC_INC}) 
+          find_path(SLEPC_INC2 "slepcconf.h" PATHS ${ENV_SLEPC_DIR} 
+                    PATH_SUFFIXES ${ENV_PETSC_ARCH}/include)
+          if(SLEPC_INC2)
+            list(APPEND EXTERNAL_INCLUDES ${SLEPC_INC2}) 
+          endif(SLEPC_INC2)
         endif(SLEPC_INC)
       endif(SLEPC_LIB)
       if(NOT HAVE_SLEPC AND NOT ENV_SLEPC_DIR)
-- 
GitLab