Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ed703f02 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

Fix a bug with intelmpi linker flag not recognize e.g. --enable-new-dtags...

Fix a bug with intelmpi linker flag not recognize e.g. --enable-new-dtags -Xlinker -rpath -Xlinker ...
parent 450667db
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,9 @@ if(HYPRE_LIBRARIES)
if (${MPI_C_LINK_FLAGS} MATCHES " -")
string(REGEX REPLACE " -" "-" MPI_C_LINK_FLAGS ${MPI_C_LINK_FLAGS})
endif()
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
if (NOT CMAKE_C_COMPILER_ID MATCHES "Intel")
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
endif()
endif()
list(APPEND REQUIRED_LIBS "${MPI_C_LIBRARIES}")
endif()
......
......@@ -436,7 +436,10 @@ if(MUMPS_LIBRARIES)
if (${MPI_Fortran_LINK_FLAGS} MATCHES " -")
string(REGEX REPLACE " -" "-" MPI_Fortran_LINK_FLAGS ${MPI_Fortran_LINK_FLAGS})
endif()
list(APPEND REQUIRED_LDFLAGS "${MPI_Fortran_LINK_FLAGS}")
# bug with intelmpi --enable-new-dtags -Xlinker -rpath -Xlinker ...
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
list(APPEND REQUIRED_LDFLAGS "${MPI_Fortran_LINK_FLAGS}")
endif()
endif()
list(APPEND REQUIRED_LIBS "${MPI_Fortran_LIBRARIES}")
endif()
......
......@@ -129,7 +129,9 @@ if(PAMPA_LIBRARIES)
if (${MPI_C_LINK_FLAGS} MATCHES " -")
string(REGEX REPLACE " -" "-" MPI_C_LINK_FLAGS ${MPI_C_LINK_FLAGS})
endif()
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
if (NOT CMAKE_C_COMPILER_ID MATCHES "Intel")
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
endif()
endif()
list(APPEND REQUIRED_LIBS "${MPI_C_LIBRARIES}")
endif()
......
......@@ -134,7 +134,9 @@ if(PARMETIS_LIBRARIES)
if (${MPI_C_LINK_FLAGS} MATCHES " -")
string(REGEX REPLACE " -" "-" MPI_C_LINK_FLAGS ${MPI_C_LINK_FLAGS})
endif()
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
if (NOT CMAKE_C_COMPILER_ID MATCHES "Intel")
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
endif()
endif()
list(APPEND REQUIRED_LIBS "${MPI_C_LIBRARIES}")
endif()
......
......@@ -150,7 +150,9 @@ if(PTSCOTCH_LIBRARIES)
if (${MPI_C_LINK_FLAGS} MATCHES " -")
string(REGEX REPLACE " -" "-" MPI_C_LINK_FLAGS ${MPI_C_LINK_FLAGS})
endif()
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
if (NOT CMAKE_C_COMPILER_ID MATCHES "Intel")
list(APPEND REQUIRED_LDFLAGS "${MPI_C_LINK_FLAGS}")
endif()
endif()
list(APPEND REQUIRED_LIBS "${MPI_C_LIBRARIES}")
endif()
......
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