Mentions légales du service

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

uniform DL lib search

parent 9eb10527
No related branches found
No related tags found
No related merge requests found
......@@ -610,6 +610,7 @@ if( (NOT BLAS_FOUND_WITH_PKGCONFIG) OR BLAS_GIVEN_BY_USER )
NAMES dl
HINTS ${_libdir}
)
mark_as_advanced(DL_LIBRARY)
list(APPEND OMP_LIB "${DL_LIBRARY}")
endif()
endif()
......
......@@ -174,15 +174,13 @@ endif()
if (NOT PARSEC_FIND_QUIETLY)
message(STATUS "Looking for PARSEC - Try to detect libdl")
endif()
set(PARSEC_DL_LIBRARIES "")
find_library(
PARSEC_DL_LIBRARY
DL_LIBRARY
NAMES dl
)
mark_as_advanced(PARSEC_DL_LIBRARY)
if (PARSEC_DL_LIBRARY)
list(APPEND PARSEC_DL_LIBRARIES "${PARSEC_DL_LIBRARY}")
list(APPEND PARSEC_EXTRA_LIBRARIES "${PARSEC_DL_LIBRARY}")
mark_as_advanced(DL_LIBRARY)
if (DL_LIBRARY)
list(APPEND PARSEC_EXTRA_LIBRARIES "${DL_LIBRARY}")
endif()
# PARSEC may depend on HWLOC, try to find it
......
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