enable_hypre.cmake 500 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

if (ENABLE_HYPRE)
  include(cmake/HYPREConfig.cmake)
  message("have hypre: ${HAVE_HYPRE}")
  if (HAVE_HYPRE)
    if (NOT MPI_FOUND)
      find_package(MPI REQUIRED)
      if (MPI_FOUND)
	list(APPEND COMPILEFLAGS "${MPI_COMPILE_FLAGS}")
	include_directories(${MPI_INCLUDE_PATH})
      endif()
    endif()
    include_directories(${HYPRE_INCLUDE_DIRECTORIES})
    list(APPEND COMPILEFLAGS "-DMTL_HAS_HYPRE")
    list(APPEND MYLIBS ${HYPRE_LIBRARIES} )
  endif()
endif (ENABLE_HYPRE)