File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ if (NOT (TPL_SCALAPACK_LIBRARIES ))
2
+ find_library (SCALAPACK_LIBRARY
3
+ NAMES scalapack scalapack-pvm scalapack-mpi scalapack-mpich scalapack-mpich2 scalapack-openmpi scalapack-lam
4
+ PATHS /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /sw/lib /usr/lib64/openmpi/lib /usr/lib64/mpich/lib
5
+ ENV LD_LIBRARY_PATH ENV SCALAPACKDIR ENV BLACSDIR )
6
+ find_library (BLACS_LIBRARY
7
+ NAMES blacs blacs-pvm blacs-mpi blacs-mpich blacs-mpich2 blacs-openmpi blacs-lam mpiblacs scalapack ${SCALAPACK_LIBRARY}
8
+ PATHS /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /sw/lib /usr/lib64/openmpi/lib /usr/lib64/mpich/lib
9
+ ENV LD_LIBRARY_PATH ENV SCALAPACKDIR ENV BLACSDIR )
10
+ set (SCALAPACK_LIBRARIES ${SCALAPACK_LIBRARY} ${BLACS_LIBRARY} )
11
+ else ()
12
+ set (SCALAPACK_LIBRARIES ${TPL_SCALAPACK_LIBRARIES} )
13
+ endif ()
14
+
15
+ # Report the found libraries, quit with fatal error if any required library has not been found.
16
+ include (FindPackageHandleStandardArgs )
17
+ find_package_handle_standard_args (SCALAPACK DEFAULT_MSG SCALAPACK_LIBRARIES )
You can’t perform that action at this time.
0 commit comments