diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index ed5e7a5..986b53a 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -46,6 +46,9 @@ target_include_directories(mpifx PUBLIC $ $) +target_include_directories(mpifx PRIVATE ${MPI_Fortran_MODULE_DIR}) +target_link_libraries(mpifx PRIVATE ${MPI_Fortran_LIBRARIES}) + install(TARGETS mpifx EXPORT ${INSTALL_EXPORT_NAME} ARCHIVE DESTINATION ${INSTALL_LIB_DIR}