Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/cmake/thirdparty/FindMFEM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ else()
string(SUBSTRING "${mfem_tpl_lnk_flags}" 0 ${mfem_tpl_lnl_flags_end_pos} mfem_tpl_lnk_flags)
string(STRIP "${mfem_tpl_lnk_flags}" mfem_tpl_lnk_flags)

# filter out items containing "Xlinker"
# transform -Xlinker items to -Wl
set(_mfem_tpl_list ${mfem_tpl_lnk_flags})
separate_arguments(_mfem_tpl_list)
list(FILTER _mfem_tpl_list EXCLUDE REGEX Xlinker)
list(JOIN _mfem_tpl_list " " mfem_tpl_lnk_flags)
list(TRANSFORM _mfem_tpl_list
REPLACE "^-Xlinker=-rpath,(.*)$" "-Wl,-rpath,\\1")
set(mfem_tpl_lnk_flags ${_mfem_tpl_list})
Comment on lines 116 to +120

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but mfem doesnt.

else()
message(WARNING "No third party library flags found in ${MFEM_CFG_DIR}/config.mk")
endif()
Expand Down