hypreΒΆ

hunter_add_package(hypre)
find_package(HYPRE CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC HYPRE::HYPRE)

Note

MPI is disabled by default.

Use HYPRE_WITH_MPI=ON to enable it (and make sure MPI is installed on your system).

# config.cmake
hunter_config(hypre
    VERSION ${HUNTER_hypre_VERSION}
    CMAKE_ARGS
        HYPRE_WITH_MPI=ON
)