diff --git a/modules/find/FindBLAS.cmake b/modules/find/FindBLAS.cmake index 4fdef0b471265d830a8d562e17d8d5ed7c363349..2b4b916b7e0357d47ee46001ea44787c60108a72 100644 --- a/modules/find/FindBLAS.cmake +++ b/modules/find/FindBLAS.cmake @@ -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() diff --git a/modules/find/FindPARSEC.cmake b/modules/find/FindPARSEC.cmake index 9aa344b268873233510c6130878b15e5f272be46..c3ff3e992e5cb22d0728dfd64ab41a1088e22823 100644 --- a/modules/find/FindPARSEC.cmake +++ b/modules/find/FindPARSEC.cmake @@ -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