
Co-authored-by: Robert Cohn <rscohn2@gmail.com> Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
14 lines
659 B
Diff
14 lines
659 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 85ea82a..86222e0 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -232,7 +232,7 @@ append_subdir_files(src-C "SRC")
|
|
|
|
if (UNIX)
|
|
add_library(scalapack ${blacs} ${tools} ${tools-C} ${extra_lapack} ${pblas} ${pblas-F} ${ptzblas} ${ptools} ${pbblas} ${redist} ${src} ${src-C})
|
|
- target_link_libraries( scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
|
|
+ target_link_libraries( scalapack ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${MPI_Fortran_LIBRARIES})
|
|
scalapack_install_library(scalapack)
|
|
else (UNIX) # Need to separate Fortran and C Code
|
|
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON )
|