Skip to content

Commit

Permalink
namespace scalapack
Browse files Browse the repository at this point in the history
  • Loading branch information
RMeli committed Jun 3, 2024
1 parent 88f2543 commit 348bbb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmake/FindSCALAPACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ find_package(PkgConfig REQUIRED)
pkg_search_module(_SCALAPACK scalapack)

find_library(
SCALAPACK_LIBRARY NAME scalapack
DLAF_SCALAPACK_LIBRARY NAME scalapack
HINTS ${_SCALAPACK_LIBRARY_DIRS}
ENV
SCALAPACKROOT
Expand All @@ -26,16 +26,16 @@ find_library(
PATH_SUFFIXES lib
)

find_package_handle_standard_args(SCALAPACK DEFAULT_MSG SCALAPACK_LIBRARY)
find_package_handle_standard_args(DLAF_SCALAPACK DEFAULT_MSG DLAF_SCALAPACK_LIBRARY)

mark_as_advanced(SCALAPACK_LIBRARY)
mark_as_advanced(SCALAPACK_INCLUDE_DIR)
mark_as_advanced(DLAF_SCALAPACK_LIBRARY)
mark_as_advanced(DLAF_SCALAPACK_INCLUDE_DIR)

if(SCALAPACK_FOUND)
if(DLAF_SCALAPACK_FOUND)
if(NOT TARGET DLAF::SCALAPACK)
add_library(DLAF::SCALAPACK INTERFACE IMPORTED GLOBAL)
endif()

target_link_libraries(DLAF::SCALAPACK INTERFACE "${SCALAPACK_LIBRARY}")
target_include_directories(DLAF::SCALAPACK INTERFACE "${SCALAPACK_INCLUDE_DIR}")
target_link_libraries(DLAF::SCALAPACK INTERFACE "${DLAF_SCALAPACK_LIBRARY}")
target_include_directories(DLAF::SCALAPACK INTERFACE "${DLAF_SCALAPACK_INCLUDE_DIR}")
endif()

0 comments on commit 348bbb6

Please sign in to comment.