From 3e77dd68ee33aa1252501a849010ef33d9f76759 Mon Sep 17 00:00:00 2001 From: Francois Henrotte <francois.henrotte@ulg.ac.be> Date: Wed, 12 Oct 2011 10:06:24 +0000 Subject: [PATCH] CMake : get right external petsc dependencies with petsc 3.2 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73d2dcadb1..f7cf85fa10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -658,6 +658,12 @@ if(ENABLE_PETSC) string(STRIP ${PLIBS} PLIBS) list(APPEND EXTERNAL_LIBRARIES "${PLIBS}") endif(PLIBS) + string(REGEX MATCH "PETSC_EXTERNAL_LIB_BASIC = [^\n\r]*" PLIBS_BASIC ${PETSC_VARIABLES}) + if(PLIBS_BASIC) + string(REPLACE "PETSC_EXTERNAL_LIB_BASIC = " "" PLIBS_BASIC ${PLIBS_BASIC}) + string(STRIP ${PLIBS_BASIC} PLIBS_BASIC) + list(APPEND EXTERNAL_LIBRARIES "${PLIBS_BASIC}") + endif(PLIBS_BASIC) string(REGEX MATCH "PCC_LINKER_LIBS = [^\n\r]*" LLIBS ${PETSC_VARIABLES}) if(LLIBS) string(REPLACE "PCC_LINKER_LIBS = " "" LLIBS ${LLIBS}) -- GitLab