ThirdPartyPETSc.cmake 483 Bytes
Newer Older
Dave Moxey's avatar
Dave Moxey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
OPTION(NEKTAR_USE_PETSC
    "Enable PETSc parallel matrix solver support." OFF)

CMAKE_DEPENDENT_OPTION(THIRDPARTY_BUILD_PETSC
    "Build PETSc if needed" ON
    "NEKTAR_USE_PETSC" OFF)

IF( NEKTAR_USE_PETSC )
    IF (THIRDPARTY_BUILD_PETSC)
        # TODO
    ELSE (THIRDPARTY_BUILD_PETSC)
        INCLUDE (FindPETSc)
        MESSAGE(STATUS "Found PETSc: ${PETSC_LIBRARIES}")
    ENDIF (THIRDPARTY_BUILD_PETSC)
ENDIF( NEKTAR_USE_PETSC )

INCLUDE_DIRECTORIES(${PETSC_INCLUDES})