@@ -4,7 +4,7 @@ include(FindPackageHandleStandardArgs)
4
4
set (_sciname "sci_gnu_mpi_mp" )
5
5
set (_sciname_acc "sci_acc_gnu_nv60" )
6
6
7
- find_library (CRAY_LIBSCI_LINK_LIBRARIES
7
+ find_library (COSMA_CRAY_LIBSCI_LIBRARIES
8
8
NAMES ${_sciname_acc} ${_sciname}
9
9
HINTS
10
10
${_SCALAPACK_LIBRARY_DIRS}
@@ -13,15 +13,15 @@ find_library(CRAY_LIBSCI_LINK_LIBRARIES
13
13
PATH_SUFFIXES lib
14
14
DOC "Path to the Cray-libsci library." )
15
15
16
- message ("CRAY_LIBSCI: ${CRAY_LIBSCI_LIBRARIES } " )
16
+ message ("CRAY_LIBSCI: ${COSMA_CRAY_LIBSCI_LIBRARIES } " )
17
17
18
- find_package_handle_standard_args(CRAY_LIBSCI DEFAULT_MSG CRAY_LIBSCI_LIBRARIES )
18
+ find_package_handle_standard_args(CRAY_LIBSCI DEFAULT_MSG COSMA_CRAY_LIBSCI_LIBRARIES )
19
19
20
- if (CRAY_LIBSCI_LIBRARIES AND NOT TARGET cosma::BLAS::SCI::scalapack )
21
- add_library (cosma::BLAS::SCI ::sci INTERFACE IMPORTED )
22
- set_target_properties (cosma::BLAS::SCI ::sci PROPERTY INTERFACE_LINK_LIBRARIES "${CRAY_LIBSCI_LINK_LIBRARIES } " )
23
- add_library (cosma::BLAS::SCI ::blas ALIAS cosma::BLAS::SCI ::sci)
20
+ if (NOT TARGET cosma::BLAS::CRAY_LIBSCI::sci )
21
+ add_library (cosma::BLAS::CRAY_LIBSCI ::sci INTERFACE IMPORTED )
22
+ set_target_properties (cosma::BLAS::CRAY_LIBSCI ::sci PROPERTIES INTERFACE_LINK_LIBRARIES "${COSMA_CRAY_LIBSCI_LIBRARIES } " )
23
+ add_library (cosma::BLAS::CRAY_LIBSCI ::blas ALIAS cosma::BLAS::CRAY_LIBSCI ::sci)
24
24
25
- add_library (cosma::BLAS::SCI ::scalapack_link INTERFACE IMPORTED )
26
- set_target_properties (cosma::BLAS::SCI::scalapack PROPERTY INTERFACE_LINK_LIBRARIES "${CRAY_LIBSCI_LINK_LIBRARIES } " )
25
+ add_library (cosma::BLAS::CRAY_LIBSCI ::scalapack_link INTERFACE IMPORTED )
26
+ set_target_properties (cosma::BLAS::CRAY_LIBSCI::scalapack_link PROPERTIES INTERFACE_LINK_LIBRARIES "${COSMA_CRAY_LIBSCI_LIBRARIES } " )
27
27
endif ()
0 commit comments