Set include dir for default (openmpi) mpi wrapper

This commit is contained in:
Matthias Hochsteger 2024-05-03 18:28:44 +02:00
parent 123e6d1739
commit 17a945f0b4

View File

@ -118,6 +118,7 @@ if(USE_MPI)
# assume openmpi here
add_library(ng_openmpi SHARED ng_mpi.cpp)
target_link_libraries(ng_openmpi PUBLIC ngcore)
target_include_directories(ng_openmpi PRIVATE ${MPI_C_HEADER_DIR})
install(TARGETS ng_openmpi DESTINATION ${NG_INSTALL_DIR} COMPONENT netgen)
# set(MPICH_INCLUDE_DIR /opt/mpich/include)