Commit f4525bf7 authored by Vasiliy Kramarenko's avatar Vasiliy Kramarenko
Browse files

fix for newer PETSc versions compare

parent 64babb1b
...@@ -26,6 +26,7 @@ set(PETSC_VALID_COMPONENTS ...@@ -26,6 +26,7 @@ set(PETSC_VALID_COMPONENTS
C C
CXX) CXX)
if(NOT PETSc_FIND_COMPONENTS) if(NOT PETSc_FIND_COMPONENTS)
set(PETSC_LANGUAGE_BINDINGS "C") set(PETSC_LANGUAGE_BINDINGS "C")
else() else()
...@@ -269,6 +270,7 @@ show : ...@@ -269,6 +270,7 @@ show :
set(_PETSC_TEST_SOURCE " set(_PETSC_TEST_SOURCE "
static const char help[] = \"PETSc test program.\"; static const char help[] = \"PETSc test program.\";
#include <petscts.h> #include <petscts.h>
#include <petscsys.h>
int main(int argc,char *argv[]) { int main(int argc,char *argv[]) {
PetscErrorCode ierr; PetscErrorCode ierr;
TS ts; TS ts;
...@@ -292,7 +294,11 @@ int main(int argc,char *argv[]) { ...@@ -292,7 +294,11 @@ int main(int argc,char *argv[]) {
find_path (PETSC_INCLUDE_DIR petscts.h HINTS "${PETSC_DIR}" PATH_SUFFIXES include NO_DEFAULT_PATH) find_path (PETSC_INCLUDE_DIR petscts.h HINTS "${PETSC_DIR}" PATH_SUFFIXES include NO_DEFAULT_PATH)
find_path (PETSC_INCLUDE_CONF petscconf.h HINTS "${PETSC_DIR}" PATH_SUFFIXES "${PETSC_ARCH}/include" "bmake/${PETSC_ARCH}" NO_DEFAULT_PATH) find_path (PETSC_INCLUDE_CONF petscconf.h HINTS "${PETSC_DIR}" PATH_SUFFIXES "${PETSC_ARCH}/include" "bmake/${PETSC_ARCH}" NO_DEFAULT_PATH)
mark_as_advanced (PETSC_INCLUDE_DIR PETSC_INCLUDE_CONF) mark_as_advanced (PETSC_INCLUDE_DIR PETSC_INCLUDE_CONF)
set (petsc_includes_minimal ${PETSC_INCLUDE_CONF} ${PETSC_INCLUDE_DIR}) if (USE_MPI)
set (petsc_includes_minimal ${PETSC_INCLUDE_CONF} ${PETSC_INCLUDE_DIR} ${MPI_INCLUDE_PATH})
else()
set (petsc_includes_minimal ${PETSC_INCLUDE_CONF} ${PETSC_INCLUDE_DIR})
endif()
#message(STATUS "petsc_includes_minimal") #message(STATUS "petsc_includes_minimal")
#foreach(D ${petsc_includes_minimal}) #foreach(D ${petsc_includes_minimal})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment