Skip to content
Snippets Groups Projects
Commit a643c2f8 authored by wenqing's avatar wenqing
Browse files

Added an option in cmake for PETSC_EXECUTABLE_RUNS

parent 9205b6d0
No related branches found
No related tags found
No related merge requests found
...@@ -120,9 +120,13 @@ ENDIF() ...@@ -120,9 +120,13 @@ ENDIF()
IF(OGS_USE_PETSC) IF(OGS_USE_PETSC)
MESSAGE (STATUS "Configuring for PETSc" ) MESSAGE (STATUS "Configuring for PETSc" )
OPTION(PETSC_EXECUTABLE_RUNS "Force CMake to accept a given PETSc configuration" ON)
##Force CMake to accept a given PETSc configuration in case the failure of MPI tests ##Force CMake to accept a given PETSc configuration in case the failure of MPI tests
##This may cause the compilation broken. ##This may cause the compilation broken.
SET(PETSC_EXECUTABLE_RUNS YES) IF(PETSC_EXECUTABLE_RUNS)
SET(PETSC_EXECUTABLE_RUNS YES)
ENDIF()
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/scripts/cmake/findPETSC") SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/scripts/cmake/findPETSC")
FIND_PACKAGE(PETSc REQUIRED) FIND_PACKAGE(PETSc REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment