Skip to content
Snippets Groups Projects
Commit 0c15a283 authored by webmanue's avatar webmanue
Browse files

include hdf5 directories when linking petsc

parent ad510d82
No related branches found
No related tags found
No related merge requests found
......@@ -16,14 +16,18 @@
include(FindPkgConfig)
pkg_check_modules(PETSc PETSc IMPORTED_TARGET)
find_package(MPI 3.1)
find_package(HDF5 1.10 MODULE)
find_package_handle_standard_args(AE108_PETSc
REQUIRED_VARS PETSc_FOUND MPI_CXX_FOUND
REQUIRED_VARS PETSc_FOUND MPI_CXX_FOUND HDF5_FOUND
VERSION_VAR PETSc_VERSION
)
if(AE108_PETSc_FOUND AND NOT TARGET ae108::external::petsc)
add_library(ae108::external::petsc INTERFACE IMPORTED)
target_include_directories(ae108::external::petsc
INTERFACE ${HDF5_INCLUDE_DIRS}
)
target_link_libraries(ae108::external::petsc
INTERFACE MPI::MPI_CXX
INTERFACE PkgConfig::PETSc
......
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