mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
Microsoft MPI linking fixes
This commit is contained in:
parent
4fafa582dc
commit
341f3df95d
@ -131,6 +131,7 @@ if(USE_MPI)
|
|||||||
|
|
||||||
if(MPI_C_LIBRARY_VERSION_STRING MATCHES "Microsoft MPI.*")
|
if(MPI_C_LIBRARY_VERSION_STRING MATCHES "Microsoft MPI.*")
|
||||||
set(MICROSOFT_MPI_INCLUDE_DIR ${MPI_C_HEADER_DIR})
|
set(MICROSOFT_MPI_INCLUDE_DIR ${MPI_C_HEADER_DIR})
|
||||||
|
set(MICROSOFT_MPI_LIBRARY ${MPI_msmpi_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MPI_C_LIBRARY_VERSION_STRING MATCHES "Open MPI.*")
|
if(MPI_C_LIBRARY_VERSION_STRING MATCHES "Open MPI.*")
|
||||||
@ -153,10 +154,13 @@ if(USE_MPI)
|
|||||||
endif()
|
endif()
|
||||||
if(INTEL_MPI_INCLUDE_DIR)
|
if(INTEL_MPI_INCLUDE_DIR)
|
||||||
build_mpi_variant(intel_mpi ${INTEL_MPI_INCLUDE_DIR})
|
build_mpi_variant(intel_mpi ${INTEL_MPI_INCLUDE_DIR})
|
||||||
|
if(WIN32)
|
||||||
|
target_link_libraries(ng_intel_mpi PUBLIC ${INTEL_MPI_LIBRARY})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(MICROSOFT_MPI_INCLUDE_DIR)
|
if(MICROSOFT_MPI_INCLUDE_DIR)
|
||||||
build_mpi_variant(microsoft_mpi ${MICROSOFT_MPI_INCLUDE_DIR})
|
build_mpi_variant(microsoft_mpi ${MICROSOFT_MPI_INCLUDE_DIR})
|
||||||
target_link_libraries(ng_microsoft_mpi PUBLIC ${MPI_msmpi_LIBRARY})
|
target_link_libraries(ng_microsoft_mpi PUBLIC ${MICROSOFT_MPI_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif(USE_MPI)
|
endif(USE_MPI)
|
||||||
|
Loading…
Reference in New Issue
Block a user